public class XMLBuffer extends java.lang.Object implements IByteBuffer
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(long index)
Get the byte at the given index of the underlying byte storage.
|
void |
close()
If teh underlying byte representation is IO related, close the IO stream
|
byte[] |
getBytes() |
byte[] |
getBytes(int offset,
int len)
Return a byte array filled with content from underlying byte storage.
|
long |
length()
Total size in terms of # of bytes.
|
void |
readFile(java.lang.String fileName) |
void |
writeToFileOutputStream(java.io.FileOutputStream ost,
long os,
long len) |
public final byte byteAt(long index)
IByteBufferbyteAt in interface IByteBufferpublic void close()
IByteBufferclose in interface IByteBufferpublic byte[] getBytes()
getBytes in interface IByteBufferpublic byte[] getBytes(int offset,
int len)
getBytes in interface IByteBufferoffset - int bytes offset (not UTF char unit)len - intpublic long length()
length in interface IByteBufferpublic void readFile(java.lang.String fileName)
throws java.io.IOException,
ParseExceptionHuge
fileName - java.io.IOExceptionParseExceptionParseExceptionHugepublic void writeToFileOutputStream(java.io.FileOutputStream ost,
long os,
long len)
throws java.io.IOException
writeToFileOutputStream in interface IByteBufferjava.io.IOException