Interface BitsFileWriter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
BitsFileWriterImpl
public interface BitsFileWriter extends java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()voidflush()Write 1 long to buffer when invoke writeBoolean 64 times.voidwriteBoolean(boolean value)Write 1 boolean to file, file is a directory.
-
-
-
Method Detail
-
writeBoolean
void writeBoolean(boolean value) throws java.io.IOExceptionWrite 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.IOExceptionWrite 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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-