Class DefaultFileContent.FileContentInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    DefaultFileContent

    private final class DefaultFileContent.FileContentInputStream
    extends MonitorInputStream
    An input stream for reading content. Provides buffering, and end-of-stream monitoring.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FileObject file  
      • Fields inherited from class java.io.BufferedInputStream

        buf, count, marklimit, markpos, pos
      • Fields inherited from class java.io.FilterInputStream

        in
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes this input stream.
      protected void onClose()
      Called after the stream has been closed.
      • Methods inherited from class java.io.BufferedInputStream

        mark, markSupported, reset, skip
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.lang.Object

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

      • FileContentInputStream

        FileContentInputStream​(FileObject file,
                               java.io.InputStream instr)
      • FileContentInputStream

        FileContentInputStream​(FileObject file,
                               java.io.InputStream instr,
                               int bufferSize)
    • Method Detail

      • onClose

        protected void onClose()
                        throws java.io.IOException
        Called after the stream has been closed.
        Overrides:
        onClose in class MonitorInputStream
        Throws:
        java.io.IOException - if an error occurs.