public class XMLMemMappedBuffer
extends java.lang.Object
implements com.ximpleware.extended.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)
com.ximpleware.extended.IByteBufferbyteAt in interface com.ximpleware.extended.IByteBufferpublic void close()
com.ximpleware.extended.IByteBufferclose in interface com.ximpleware.extended.IByteBufferpublic byte[] getBytes()
getBytes in interface com.ximpleware.extended.IByteBufferpublic byte[] getBytes(int offset,
int len)
getBytes in interface com.ximpleware.extended.IByteBufferoffset - int bytes offset (not UTF char unit)len - intpublic long length()
com.ximpleware.extended.IByteBufferlength in interface com.ximpleware.extended.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 com.ximpleware.extended.IByteBufferjava.io.IOException