public class IOManagerImpl extends Object implements IOManager
IOManagerImpl
represents the most simple IOManager
implementation that provides a default constructor and does define any
IOHandler
s.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 IOHandler
s 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)
IOManager
addIOHandler
in interface IOManager
ioHandler
- to be addedIOManager.addIOHandler(IOHandler)
public IOHandler[] getIOHandlers()
IOManager
getIOHandlers
in interface IOManager
IOManager.getIOHandlers()
public org.apache.tika.detect.Detector getDetector()
getDetector
in interface IOManager
public void setDetector(org.apache.tika.detect.Detector detector)
setDetector
in interface IOManager
detector
- content type detectorpublic boolean importContent(ImportContext context, boolean isCollection) throws IOException
IOManager
importContent
in interface IOManager
IOException
IOManager.importContent(ImportContext, boolean)
public boolean importContent(ImportContext context, DavResource resource) throws IOException
IOManager
importContent
in interface IOManager
IOException
IOManager.importContent(ImportContext, DavResource)
public boolean exportContent(ExportContext context, boolean isCollection) throws IOException
IOManager
exportContent
in interface IOManager
IOException
IOManager.exportContent(ExportContext, boolean)
public boolean exportContent(ExportContext context, DavResource resource) throws IOException
IOManager
exportContent
in interface IOManager
IOException
IOManager.exportContent(ExportContext, DavResource)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.