ByteData |
ByteData.bind(java.io.OutputStream os) |
bind all data to output stream
|
ByteData |
ByteData.bind(java.io.OutputStream os,
int limit) |
bind all data to output stream
|
static ByteData |
ByteData.create() |
create
capacity : 8192
|
static ByteData |
ByteData.create(int capacity,
java.lang.String charset) |
create
capacity : 8192
|
static ByteData |
ByteData.create(java.lang.String charset) |
create
capacity : 8192
|
ByteData |
ByteData.fillSpace() |
null bytes fill the spaces char
[0 0 0 0 97 (writePointer)0 0 0]
fillSpace()
[32 32 32 32 97 (writePointer)0 0 0]
|
ByteData |
ByteData.insert(byte[] data,
int offset) |
insert
does not move write pointer
|
ByteData |
ByteData.insert(byte[] data,
int dataOffset,
int dataLength,
int offset) |
insert
does not move write pointer
|
ByteData |
ByteData.insert(java.lang.String data,
int offset) |
insert
does not move write pointer
|
ByteData |
ByteData.insertFill(byte fill,
int offset,
int length) |
insert fill
|
ByteData |
ByteData.insertFillSpace(int offset,
int length) |
insert fill space
|
ByteData |
ByteData.insertFixed(java.lang.String data,
int fixedSize,
byte fill,
int offset) |
insert fixed data
|
ByteData |
ByteData.insertFixedAlignRight(java.lang.String data,
int fixedSize,
byte fill,
int offset) |
insert fixed data
|
ByteData |
ByteData.moveWritePointer(int index) |
move the write pointer (next write index pointer)
moveWritePointer(3) : next write index point 3, length 2
|
ByteData |
ByteData.newByteData(int offset,
int length) |
new ByteData
|
ByteData |
ByteData.readIgnore(int size) |
read ignore
|
ByteData |
ByteData.readIgnoreCurrentLine() |
move read pointer to next line
|
ByteData |
ByteData.readIgnoreMatch(byte match) |
read ignore
|
ByteData |
ByteData.rectifyWritePointer() |
rectify the write pointer (next write index pointer)
create and insert method and to String is ""
because insert method is not moving write pointer
this method is moving pointer last data of buffer
ex) create
[0 0 0 0 0 0 0 0] / write pointer:0
insert("a", 3); [0 0 0 97 0 0 0 0] / write pointer:0
rectifyWritePointer();
[0 0 0 97 0 0 0 0] / write pointer:4
|
ByteData |
ByteData.write(byte[] data) |
write data
|
ByteData |
ByteData.write(byte[] data,
int offset,
int length) |
write data
|
ByteData |
ByteData.write(java.io.File file) |
write file input stream
|
ByteData |
ByteData.write(java.io.File file,
java.lang.String fileCharset) |
write file input stream
|
ByteData |
ByteData.write(java.io.InputStream is) |
write inputstream
inputstream will not be closed
|
ByteData |
ByteData.write(java.io.InputStream is,
int limit) |
write inputstream
inputstream will not be closed
|
ByteData |
ByteData.write(java.lang.String data) |
write data
|
ByteData |
ByteData.writeFill(byte fill,
int length) |
write fill
|
ByteData |
ByteData.writeFillSpace(int length) |
write fill space
|
ByteData |
ByteData.writeFixed(int data,
int fixedSize,
byte fill) |
write fixed size
|
ByteData |
ByteData.writeFixed(java.lang.String data,
int fixedSize,
byte fill) |
write fixed size
|
ByteData |
ByteData.writeFixedAlignRight(int data,
int fixedSize,
byte fill) |
write fixed size
|
ByteData |
ByteData.writeFixedAlignRight(java.lang.String data,
int fixedSize,
byte fill) |
write fixed size
|
ByteData |
ByteData.writeLine1() |
write \n
|
ByteData |
ByteData.writeLine2() |
write \r\n
|