Top Description Methods
org.apache.derby.iapi.services.io

public Interface StreamStorable

Known Direct Subinterfaces
org.apache.derby.iapi.types.BitDataValue
Known Direct Implementers
org.apache.derby.iapi.types.SQLChar, org.apache.derby.iapi.types.XML
Imports
org.apache.derby.shared.common.error.StandardException, java.io.InputStream

Streaming interface for a data value. The format of the stream is data type dependent and represents the on-disk format of the value. That is it is different to the value an application will see through JDBC with methods like getBinaryStream and getAsciiStream.
If the value is NULL (DataValueDescriptor.isNull returns true then these methods should not be used to get the value.
See Also
Formatable

Method Summary

Modifier and TypeMethod and Description
public void
loadStream()

Set the value by reading the stream and converting it to an object form.

public InputStream

Returns:

a stream to read the object state
returnStream
()

Return the on-disk stream state of the object.

public void
setStream(InputStream
The new stream to use
newStream
)

sets the on-disk stream state for the object.

Method Detail

loadStreamback to summary
public void loadStream() throws StandardException

Set the value by reading the stream and converting it to an object form.

Exceptions
StandardException:
on error
returnStreamback to summary
public InputStream returnStream()

Return the on-disk stream state of the object.

Returns:InputStream

a stream to read the object state

setStreamback to summary
public void setStream(InputStream newStream)

sets the on-disk stream state for the object.

Parameters
newStream:InputStream

The new stream to use