public class BlobStreamingParameter extends Object implements ParameterHolder
| Constructor and Description |
|---|
BlobStreamingParameter(InputStream is,
String host,
String port,
String schema)
Create a new StreamParameter.
|
| Modifier and Type | Method and Description |
|---|---|
long |
length()
Returns the length of the parameter - this is the length of the blob reference
Since we don't know the length of the reference before it has been uploaded, it is uploaded in this method.
|
int |
writeTo(OutputStream os,
int offset,
int maxWriteSize)
Writes the parameter to an outputstream.
|
public BlobStreamingParameter(InputStream is, String host, String port, String schema) throws IOException
is - the input stream to create the parameter fromIOExceptionpublic final int writeTo(OutputStream os, int offset, int maxWriteSize) throws IOException
writeTo in interface ParameterHolderos - the outputstream to write tooffset - where to start writingmaxWriteSize - max number of bytes to writeIOException - if we cannot write to the streampublic final long length()
throws IOException
length in interface ParameterHolderIOExceptionCopyright © 2016. All rights reserved.