public class BlobStreamData extends java.lang.Object implements StreamData
Constructor and Description |
---|
BlobStreamData(AppContext conn,
java.sql.Blob b) |
Modifier and Type | Method and Description |
---|---|
void |
append(java.io.OutputStream out)
write contents to an OutputStream without closing.
|
java.io.InputStream |
getInputStream()
get an InputStream to read the state of the obect
|
long |
getLength()
get the size of data held in the object
|
java.io.OutputStream |
getOutputStream()
Get an OutputStream used to modify the state of the object
|
void |
read(java.io.InputStream in)
read data from an Input Stream
|
void |
write(java.io.OutputStream out)
write contents to an OutputStream and close
|
public BlobStreamData(AppContext conn, java.sql.Blob b)
public long getLength()
StreamData
getLength
in interface StreamData
public java.io.InputStream getInputStream()
StreamData
getInputStream
in interface StreamData
public java.io.OutputStream getOutputStream()
StreamData
getOutputStream
in interface StreamData
public void read(java.io.InputStream in) throws DataFault, java.io.IOException
StreamData
read
in interface StreamData
in
- InputStreamDataFault
java.io.IOException
public void write(java.io.OutputStream out) throws DataFault, java.io.IOException
StreamData
write
in interface StreamData
out
- OutputStreamDataFault
java.io.IOException
public void append(java.io.OutputStream out) throws java.io.IOException
StreamData
append
in interface StreamData
out
- java.io.IOException