org.apache.jackrabbit.server.io
Interface IOContext

All Known Subinterfaces:
ExportContext, ImportContext
All Known Implementing Classes:
AbstractExportContext, 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

public IOListener getIOListener()
Returns the IOListener.

Returns:

hasStream

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


informCompleted

public 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

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

Returns:
true if this context already has been completed.


Copyright © 2005-2006 . All Rights Reserved.