Class JimfsOutputStream

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

    final class JimfsOutputStream
    extends java.io.OutputStream
    OutputStream for writing to a RegularFile.
    • Field Detail

      • pos

        private long pos
      • append

        private final boolean append
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • writeInternal

        private void writeInternal​(byte[] b,
                                   int off,
                                   int len)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • checkNotClosed

        private void checkNotClosed()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException
      • isOpen

        private boolean isOpen()