Class OpenNlpExtractor.FileDestinationStorage

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File outputFile  
      protected java.io.OutputStream outputStream  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • outputFile

        protected final java.io.File outputFile
      • outputStream

        protected final java.io.OutputStream outputStream
    • Constructor Detail

      • FileDestinationStorage

        public FileDestinationStorage()
                               throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
    • Method Detail

      • getOutputStream

        public java.io.OutputStream getOutputStream()
                                             throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Description copied from interface: OpenNlpExtractor.DestinationStorage
        Get the output stream to write to. Caller should explicitly close this stream when done writing.
        Specified by:
        getOutputStream in interface OpenNlpExtractor.DestinationStorage
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
      • getBinaryLength

        public long getBinaryLength()
                             throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Get new binary length.
        Specified by:
        getBinaryLength in interface OpenNlpExtractor.DestinationStorage
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Get the input stream to read from. Caller should explicitly close this stream when done reading.
        Specified by:
        getInputStream in interface OpenNlpExtractor.DestinationStorage
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
      • close

        public void close()
                   throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Close the object and clean up everything. This should be called when the data is no longer needed.
        Specified by:
        close in interface OpenNlpExtractor.DestinationStorage
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException