Package org.eclipse.mat.parser.io
Class BitOutputStream
- java.lang.Object
-
- org.eclipse.mat.parser.io.BitOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class BitOutputStream extends java.lang.Object implements java.io.Flushable, java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BUFFER_SIZE
-
Constructor Summary
Constructors Constructor Description BitOutputStream(java.io.OutputStream os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
int
writeBit(int bit)
int
writeInt(int x, int len)
-
-
-
Field Detail
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
writeBit
public int writeBit(int bit) throws java.io.IOException
- Throws:
java.io.IOException
-
writeInt
public int writeInt(int x, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
-