|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IOHandler
...
Method Summary | |
boolean |
canExport(ExportContext context,
boolean isCollection)
Returns true, if this handler can run a successful export based on the specified context. |
boolean |
canExport(ExportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Returns true, if this handler can run a successful export based on the specified context and resource. |
boolean |
canImport(ImportContext context,
boolean isCollection)
Returns true, if this handler can run a successful import based on the specified context. |
boolean |
canImport(ImportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Returns true, if this handler can run a successful import based on the specified context and resource. |
boolean |
exportContent(ExportContext context,
boolean isCollection)
Runs the export for the given context. |
boolean |
exportContent(ExportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Runs the export for the given context and resource. |
IOManager |
getIOManager()
Returns the IOManager that called this handler or null . |
String |
getName()
Returns a human readable name for this IOHandler |
boolean |
importContent(ImportContext context,
boolean isCollection)
Runs the import for the given context and indicates by a boolean return value, if the import could be completed successfully. |
boolean |
importContent(ImportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Runs the import for the given context and resource. |
Method Detail |
public IOManager getIOManager()
IOManager
that called this handler or null
.
public String getName()
IOHandler
public boolean canImport(ImportContext context, boolean isCollection)
context
- isCollection
-
public boolean canImport(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource)
canImport(ImportContext, boolean)
where
the isCollection flag is determined by DavResource.isCollection()
.
context
- resource
-
public boolean importContent(ImportContext context, boolean isCollection) throws IOException
ImportContext
does not provide a stream
the implementation is free, to only import properties of to refuse the
import.ImportContext
to assert, that its stream is not consumed
multiple times when being passed to a chain of IOHandler
s.
context
- isCollection
-
IOException
- if an unexpected error occurs or if this method has
been called although canImport(ImportContext, boolean)
returns
false.public boolean importContent(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource) throws IOException
ImportContext
does not provide a stream
the implementation is free, to only import properties of to refuse the
import. A simple implementation may return the same as
importContent(ImportContext, boolean)
where the isCollection flag
is determined by DavResource.isCollection()
ImportContext
to assert, that its stream is not consumed
multiple times when being passed to a chain of IOHandler
s.
context
- resource
-
IOException
- if an unexpected error occurs or if this method has
been called although canImport(ImportContext, DavResource)
returns
false.importContent(ImportContext, boolean)
public boolean canExport(ExportContext context, boolean isCollection)
context
- isCollection
-
public boolean canExport(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource)
canExport(ExportContext, boolean)
where
the isCollection flag is determined by DavResource.isCollection()
.
context
- resource
-
public boolean exportContent(ExportContext context, boolean isCollection) throws IOException
ExportContext
does not provide a stream
the implementation should set the properties only and ignore the content to
be exported. A simple implementation may return the same as
exportContent(ExportContext, boolean)
where the isCollection flag
is determined by DavResource.isCollection()
ExportContext
to assert, that its stream is not written
multiple times when being passed to a chain of IOHandler
s.
context
- isCollection
-
IOException
- if an unexpected error occurs or if this method has
been called although canExport(ExportContext, boolean)
returns
false.public boolean exportContent(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource) throws IOException
ExportContext
does not provide a stream
the implementation should set the properties only and ignore the content to
be exported. A simple implementation may return the same as
exportContent(ExportContext, boolean)
where the isCollection flag
is determined by DavResource.isCollection()
ExportContext
to assert, that its stream is not written
multiple times when being passed to a chain of IOHandler
s.
context
- resource
-
IOException
- if an unexpected error occurs or if this method has
been called although canExport(ExportContext, DavResource)
returns
false.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |