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

public Interface CloneableStream

Known Direct Implementers
org.apache.derby.iapi.services.io.FormatIdInputStream, org.apache.derby.impl.store.raw.data.OverflowInputStream
Imports
java.io.InputStream

This is a simple interface that is used by streams that can clone themselves.

The purpose is for the implementation of BLOB/CLOB (and potentially other types whose value is represented by a stream), for which their size makes it impossible or very expensive to materialize the value.

Method Summary

Modifier and TypeMethod and Description
public InputStream

Returns:

The cloned stream.
cloneStream
()

Clone the stream.

Method Detail

cloneStreamback to summary
public InputStream cloneStream()

Clone the stream.

To be used when a "deep" clone of a stream is required rather than multiple references to the same stream.

The resulting clone should support reads, resets, closes which do not affect the original stream source of the clone.

Returns:InputStream

The cloned stream.