com.metamatrix.common.lob
Interface LobChunkProducer

All Known Implementing Classes:
BufferManagerLobChunkStream, ByteLobChunkStream, StreamingLobChunckProducer

public interface LobChunkProducer

An interface for generating or producing the LobChunks from a remote or local location. A LobChunk is part or whole of a LOB (clob, blob, xml) object.

See Also:
LobChunk

Method Summary
 void close()
          Close the underlaying stream of producing the chunks
 LobChunk getNextChunk()
          Gets the next LobChunk from the source, based on the chunk size configured
 

Method Detail

getNextChunk

LobChunk getNextChunk()
                      throws java.io.IOException
Gets the next LobChunk from the source, based on the chunk size configured

Parameters:
position - position of the chunk starts from 1 to .. increments by one until the last chunk returned. Must start with 1 and increment.
Returns:
LobChunk at position in the streamble object.
Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
Close the underlaying stream of producing the chunks

Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.