|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drizzle.jdbc.internal.common.query.parameters.StreamParameter
public class StreamParameter
Holds a stream parameter. User: marcuse Date: Feb 19, 2009 Time: 8:53:14 PM
| Constructor Summary | |
|---|---|
StreamParameter(java.io.InputStream is,
long readLength)
Create a new StreamParameter. |
|
| Method Summary | |
|---|---|
long |
length()
Returns the length of the parameter - this is the total amount of bytes that will be sent. |
int |
writeTo(java.io.OutputStream os,
int offset,
int maxWriteSize)
Writes the parameter to an outputstream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamParameter(java.io.InputStream is,
long readLength)
throws java.io.IOException
is - the input stream to create the parameter fromreadLength - the length to read
java.io.IOException - if we cannot read the stream| Method Detail |
|---|
public int writeTo(java.io.OutputStream os,
int offset,
int maxWriteSize)
throws java.io.IOException
writeTo in interface ParameterHolderos - the outputstream to write tooffset - where to start writingmaxWriteSize - max number of bytes to write
java.io.IOException - if we cannot write to the streampublic final long length()
length in interface ParameterHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||