protected static class TikaExtractor.MemoryDestinationStorage extends Object implements TikaExtractor.DestinationStorage
Modifier and Type | Field and Description |
---|---|
protected ByteArrayOutputStream |
outputStream |
Constructor and Description |
---|
TikaExtractor.MemoryDestinationStorage(int sizeHint) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the object and clean up everything.
|
long |
getBinaryLength()
Get new binary length.
|
InputStream |
getInputStream()
Get the input stream to read from.
|
OutputStream |
getOutputStream()
Get the output stream to write to.
|
protected final ByteArrayOutputStream outputStream
public TikaExtractor.MemoryDestinationStorage(int sizeHint)
public OutputStream getOutputStream() throws ManifoldCFException
TikaExtractor.DestinationStorage
getOutputStream
in interface TikaExtractor.DestinationStorage
ManifoldCFException
public long getBinaryLength() throws ManifoldCFException
getBinaryLength
in interface TikaExtractor.DestinationStorage
ManifoldCFException
public InputStream getInputStream() throws ManifoldCFException
getInputStream
in interface TikaExtractor.DestinationStorage
ManifoldCFException
public void close() throws ManifoldCFException
close
in interface TikaExtractor.DestinationStorage
ManifoldCFException