Method Summary |
|
final public void | _writeArray(byte b, int off, int len) Writes array into this one and advance current position. |
final public void | _writeByte(int b) Writes byte and advance current position. |
final public void | _writeDWord(int b) Writes dword and advance current position. |
final public byte[] | _writeStringZ(String s) Writes zero-ending string into the buffer and advance current position. |
final public byte[] | _writeStringZ(String s, String encoding) Writes zero-ending string into the buffer and advance current position. |
final public void | _writeWord(int b) Writes word and advance current position. |
final public void | ensureCapacity(int cap) |
final public void | flushBits() |
final public int | getBits(int n) Reads unsigned bits from the buffer.
According to profiler this is probably the most
time consuming operation. |
public boolean | getBool() |
final public byte[] | getBuf() Returns the whole buffer. |
final public int | getByte() Reads one signed byte. |
final public int | getByteAt(int p) |
final public byte[] | getBytes(int length) Reads bytes into array of bytes. |
public FlashBuffer | getCopy() Creates copy of the buffer. |
public int | getDWord() Reads one signed dword. |
public int | getDWordAt(int p) |
public InputStream | getInputStream() Creates input stream which can be used to read data from this buffer. |
public InputStream | getInputStream(int pos) Creates input stream which can be used to read data from this buffer. |
public AffineTransform | getMatrix() |
public OutputStream | getOutputStream() Creates output stream which can be used to write data to this buffer. |
final public int | getPos() Current read/write position. |
public Rectangle2D | getRect() |
final public int | getSBits(int n) |
final public int | getSize() Returns size of the buffer. |
final public String | getString() Reads zero-ending string. |
final public String | getString(int length) Read string by its length. |
final public void | getTo(FlashBuffer fob, int length) Reads bytes into given FlashBuffer. |
final public int | getUByte() Reads one unsigned byte. |
final public int | getUByteAt(int p) |
public int | getUDWord() Reads one unsigned dword. |
public int | getUDWordAt(int p) |
final public int | getUWord() Reads one unsigned word. |
final public int | getUWordAt(int p) |
final public int | getWord() Reads one signed word. |
final public int | getWordAt(int p) |
final public void | incPos() Increment current position.
Does not increase the buffer if new position is larger
than current capacity. |
public void | init(byte[] buf, int pos, int size) |
final public void | initBits() |
final public int | new_getBits(int n) |
final public void | setPos(int pos) Sets current read/write position.
Does not increase the buffer if new position is larger
than current capacity. |
final public void | setSize(int size) Sets new size of the buffer.
Does not increase the buffer if new position is larger
than current capacity. |
final public void | skip(int inc) Skips bytes (changes current position).
Does not increase the buffer if new position is larger
than current capacity. |
final public void | skipBits(int n) Skips bits. |
public void | skipMatrix() |
public void | skipRect() |
public String | toString() |
public String | toString(String encoding) |
final public void | write(InputStream is) |
public void | write(AffineTransform m) |
public void | write(Rectangle2D r) |
final public void | writeArray(byte b, int off, int len) Writes array into this one and advance current position. |
final public void | writeBit(int b) Writes lower bit to bit buffer. |
final public void | writeBits(int v, int len) |
final public void | writeBool(boolean b) Writes boolean as a bit to bit buffer. |
final public void | writeByte(int b) Writes byte and advance current position. |
final public void | writeByteAt(int b, int pos) Writes byte at specified position.
Does not change current position. |
final public void | writeDWord(int b) Writes dword and advance current position. |
final public void | writeDWordAt(int b, int pos) Writes dword at specified position.
Does not change current position. |
final public void | writeFOB(FlashBuffer fob) Writes FlashBuffer into this one and advance current position. |
final public void | writeLongTag(int tagCode, int tagSize) |
final public void | writeLongTagAt(int tagCode, int tagSize, int pos) |
final public void | writeShortTagAt(int tagCode, int tagSize, int pos) |
final public void | writeStringL(String s) Writes length-prefixed string into the buffer and advance current position. |
final public void | writeStringL(String s, String encoding) Writes length-prefixed string into the buffer and advance current position. |
final public byte[] | writeStringZ(String s) Writes zero-ending string into the buffer and advance current position. |
final public byte[] | writeStringZ(String s, String encoding) Writes zero-ending string into the buffer and advance current position. |
final public void | writeTag(int tagCode, int tagSize) |
final public void | writeWord(int b) Writes word and advance current position. |
final public void | writeWordAt(int b, int pos) Writes word at specified position.
Does not change current position. |