protected static class OpenNlpExtractor.MemoryDestinationStorage extends java.lang.Object implements OpenNlpExtractor.DestinationStorage
| Modifier and Type | Field and Description |
|---|---|
protected java.io.ByteArrayOutputStream |
outputStream |
| Constructor and Description |
|---|
MemoryDestinationStorage(int sizeHint) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the object and clean up everything.
|
long |
getBinaryLength()
Get new binary length.
|
java.io.InputStream |
getInputStream()
Get the input stream to read from.
|
java.io.OutputStream |
getOutputStream()
Get the output stream to write to.
|
public java.io.OutputStream getOutputStream()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
OpenNlpExtractor.DestinationStoragegetOutputStream in interface OpenNlpExtractor.DestinationStorageorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic long getBinaryLength()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
getBinaryLength in interface OpenNlpExtractor.DestinationStorageorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.io.InputStream getInputStream()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
getInputStream in interface OpenNlpExtractor.DestinationStorageorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void close()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
close in interface OpenNlpExtractor.DestinationStorageorg.apache.manifoldcf.core.interfaces.ManifoldCFException