org.apache.jackrabbit.server.io
Interface IOContext

All Known Subinterfaces:
ExportContext, ImportContext, PropertyExportContext, PropertyImportContext
All Known Implementing Classes:
AbstractExportContext, ExportContextImpl, ImportContextImpl

public interface IOContext

IOContext defines the common methods for ImportContext and ExportContext


Method Summary
 IOListener getIOListener()
          Returns the IOListener.
 boolean hasStream()
          Return true if the given export context can provide an output stream
 void informCompleted(boolean success)
          Informs this context that it will not be used for futher exports any more.
 boolean isCompleted()
          Returns true if this context already has been completed.
 

Method Detail

getIOListener

IOListener getIOListener()
Returns the IOListener.

Returns:

hasStream

boolean hasStream()
Return true if the given export context can provide an output stream


informCompleted

void informCompleted(boolean success)
Informs this context that it will not be used for futher exports any more. A boolean flag indicates about the success of the export

Parameters:
success -

isCompleted

boolean isCompleted()
Returns true if this context already has been completed.

Returns:
true if this context already has been completed.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.