Class HtmlExtractor.MemoryDestinationStorage
- java.lang.Object
-
- org.apache.manifoldcf.agents.transformation.htmlextractor.HtmlExtractor.MemoryDestinationStorage
-
- All Implemented Interfaces:
HtmlExtractor.DestinationStorage
- Enclosing class:
- HtmlExtractor
protected static class HtmlExtractor.MemoryDestinationStorage extends java.lang.Object implements HtmlExtractor.DestinationStorage
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.ByteArrayOutputStreamoutputStream
-
Constructor Summary
Constructors Constructor Description MemoryDestinationStorage(int sizeHint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the object and clean up everything.longgetBinaryLength()Get new binary length.java.io.InputStreamgetInputStream()Get the input stream to read from.java.io.OutputStreamgetOutputStream()Get the output stream to write to.protected static inthandleIOException(java.io.IOException e)
-
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionDescription copied from interface:HtmlExtractor.DestinationStorageGet the output stream to write to. Caller should explicitly close this stream when done writing.- Specified by:
getOutputStreamin interfaceHtmlExtractor.DestinationStorage- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getBinaryLength
public long getBinaryLength() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet new binary length.- Specified by:
getBinaryLengthin interfaceHtmlExtractor.DestinationStorage- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getInputStream
public java.io.InputStream getInputStream() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet the input stream to read from. Caller should explicitly close this stream when done reading.- Specified by:
getInputStreamin interfaceHtmlExtractor.DestinationStorage- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
close
public void close() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionClose the object and clean up everything. This should be called when the data is no longer needed.- Specified by:
closein interfaceHtmlExtractor.DestinationStorage- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
handleIOException
protected static int handleIOException(java.io.IOException e) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-