public class BitOutputStream extends FilterOutputStream
out| コンストラクタと説明 |
|---|
BitOutputStream(OutputStream out) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
flush() |
void |
flushBit()
残ビット処理.
|
void |
write(int b)
バイト境界にあわせてから書き込む
|
void |
writeBit(byte[] data,
int offset,
int len)
指定ビットの書き込み
シフトしながら書き込むため低速?
|
void |
writeBit(int data,
int bit)
指定ビット書き込み
dataの下位ビットから指定ビットを追加する。
|
void |
writeBit(long data,
int bit)
下から?
|
close, write, writepublic BitOutputStream(OutputStream out)
public void write(int b)
throws IOException
write クラス内 FilterOutputStreamIOException - Filterpublic void writeBit(int data,
int bit)
throws IOException
data - データbit - 有効ビットIOExceptionpublic void writeBit(long data,
int bit)
throws IOException
data - bit - IOExceptionpublic void writeBit(byte[] data,
int offset,
int len)
throws IOException
data - offset - len - IOExceptionpublic void flushBit()
throws IOException
IOExceptionpublic void flush()
throws IOException
flush インタフェース内 Flushableflush クラス内 FilterOutputStreamIOExceptionCopyright © 2024. All rights reserved.