public class IOManagerImpl extends Object implements IOManager
IOManagerImpl represents the most simple IOManager
implementation that provides a default constructor and does define any
IOHandlers.| Constructor and Description |
|---|
IOManagerImpl()
Create a new
IOManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
addIOHandler(IOHandler ioHandler)
Adds the specified handler to the list of handlers.
|
boolean |
exportContent(ExportContext context,
boolean isCollection)
Passes the specified information to the IOHandlers present on this manager.
|
boolean |
exportContent(ExportContext context,
DavResource resource)
Passes the specified information to the IOHandlers present on this manager.
|
org.apache.tika.detect.Detector |
getDetector()
Return the configured type detector.
|
IOHandler[] |
getIOHandlers()
Returns all handlers that have been added to this manager.
|
boolean |
importContent(ImportContext context,
boolean isCollection)
Passes the specified context and boolean value to the IOHandlers present
on this manager.
|
boolean |
importContent(ImportContext context,
DavResource resource)
Passes the specified information to the IOHandlers present on this manager.
|
void |
setDetector(org.apache.tika.detect.Detector detector)
Sets the configured type detector.
|
public IOManagerImpl()
IOManager.
Note, that this manager does not define any IOHandlers by
default. Use addIOHandler(IOHandler) in order to populate the
internal list of handlers that are called for importContent and
exportContent.public void addIOHandler(IOHandler ioHandler)
IOManageraddIOHandler in interface IOManagerioHandler - to be addedIOManager.addIOHandler(IOHandler)public IOHandler[] getIOHandlers()
IOManagergetIOHandlers in interface IOManagerIOManager.getIOHandlers()public org.apache.tika.detect.Detector getDetector()
getDetector in interface IOManagerpublic void setDetector(org.apache.tika.detect.Detector detector)
setDetector in interface IOManagerdetector - content type detectorpublic boolean importContent(ImportContext context, boolean isCollection) throws IOException
IOManagerimportContent in interface IOManagerIOExceptionIOManager.importContent(ImportContext, boolean)public boolean importContent(ImportContext context, DavResource resource) throws IOException
IOManagerimportContent in interface IOManagerIOExceptionIOManager.importContent(ImportContext, DavResource)public boolean exportContent(ExportContext context, boolean isCollection) throws IOException
IOManagerexportContent in interface IOManagerIOExceptionIOManager.exportContent(ExportContext, boolean)public boolean exportContent(ExportContext context, DavResource resource) throws IOException
IOManagerexportContent in interface IOManagerIOExceptionIOManager.exportContent(ExportContext, DavResource)Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.