org.eclipse.emf.cdo.common.lob
Interface CDOLobHandler

All Known Subinterfaces:
CDOServerImporter.Handler

public interface CDOLobHandler

A callback interface for handling large objects.

Since:
4.0
Author:
Eike Stepper

Method Summary
 OutputStream handleBlob(byte[] id, long size)
          A callback method for handling a binary large object.
 Writer handleClob(byte[] id, long size)
          A callback method for handling a character large object.
 

Method Detail

handleBlob

OutputStream handleBlob(byte[] id,
                        long size)
                        throws IOException
A callback method for handling a binary large object. The ID and size of the blob are passed by the caller. The implementor may return a stream that the blob content will be written to by the caller of this method, or null to indicate that the content is not needed.

Throws:
IOException

handleClob

Writer handleClob(byte[] id,
                  long size)
                  throws IOException
A callback method for handling a character large object. The ID and size of the blob are passed by the caller. The implementor may return a writer that the blob content will be written to by the caller of this method, or null to indicate that the content is not needed.

Throws:
IOException


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.