Class DefaultFileContent.FileContentOutputStream

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

    final class DefaultFileContent.FileContentOutputStream
    extends MonitorOutputStream
    An output stream for writing content.
    • Field Summary

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

        buf, count
      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Detail

      • FileContentOutputStream

        FileContentOutputStream​(FileObject file,
                                java.io.OutputStream outstr)
      • FileContentOutputStream

        FileContentOutputStream​(FileObject file,
                                java.io.OutputStream outstr,
                                int bufferSize)
    • Method Detail

      • onClose

        protected void onClose()
                        throws java.io.IOException
        Called after this stream is closed.
        Overrides:
        onClose in class MonitorOutputStream
        Throws:
        java.io.IOException - if an error occurs.