Class Utf8RecodingDeferredFileOutputStream


  • class Utf8RecodingDeferredFileOutputStream
    extends java.lang.Object
    A deferred file output stream decorator that recodes the bytes written into the stream from the VM default encoding to UTF-8.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean closed  
      private org.apache.commons.io.output.DeferredFileOutputStream deferredFileOutputStream  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void free()  
      long getByteCount()  
      void write​(java.lang.String output, boolean newLine)  
      void writeTo​(java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

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

      • deferredFileOutputStream

        private org.apache.commons.io.output.DeferredFileOutputStream deferredFileOutputStream
      • closed

        private boolean closed
    • Constructor Detail

      • Utf8RecodingDeferredFileOutputStream

        Utf8RecodingDeferredFileOutputStream​(java.lang.String channel)
    • Method Detail

      • write

        public void write​(java.lang.String output,
                          boolean newLine)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getByteCount

        public long getByteCount()
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.OutputStream out)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • free

        public void free()