Interface BitsFileWriter

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    BitsFileWriterImpl

    public interface BitsFileWriter
    extends java.io.Closeable
    • Method Detail

      • writeBoolean

        void writeBoolean​(boolean value)
                   throws java.io.IOException
        Write 1 boolean to file, file is a directory. Use 1 long store 64 booleans, write from low to high.
        Parameters:
        value - boolean data
        Throws:
        java.io.IOException
      • flush

        void flush()
            throws java.io.IOException
        Write 1 long to buffer when invoke writeBoolean 64 times. This method will write the buffer to the file, but the part of written not enough 64 times will not be written to the file.
        Throws:
        java.io.IOException
      • close

        void close()
            throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException