public class XMLMemMappedBuffer extends java.lang.Object implements IByteBuffer
| Constructor and Description |
|---|
XMLMemMappedBuffer() |
| 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()
NOt implemented yet
|
byte[] |
getBytes(int offset,
int len)
not implemented yet
|
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)
write the segment (denoted by its offset and length) into an output file stream
|
public 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()
IByteBufferlength in interface IByteBufferpublic void readFile(java.lang.String fileName)
throws java.io.IOException,
ParseExceptionHuge
java.io.IOExceptionParseExceptionHugepublic void writeToFileOutputStream(java.io.FileOutputStream ost,
long os,
long len)
throws java.io.IOException
writeToFileOutputStream in interface IByteBufferjava.io.IOException