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.IByteBuffer
byteAt
in interface com.ximpleware.extended.IByteBuffer
public void close()
com.ximpleware.extended.IByteBuffer
close
in interface com.ximpleware.extended.IByteBuffer
public byte[] getBytes()
getBytes
in interface com.ximpleware.extended.IByteBuffer
public byte[] getBytes(int offset, int len)
getBytes
in interface com.ximpleware.extended.IByteBuffer
offset
- int bytes offset (not UTF char unit)len
- intpublic long length()
com.ximpleware.extended.IByteBuffer
length
in interface com.ximpleware.extended.IByteBuffer
public void readFile(java.lang.String fileName) throws java.io.IOException, ParseExceptionHuge
java.io.IOException
ParseExceptionHuge
public void writeToFileOutputStream(java.io.FileOutputStream ost, long os, long len) throws java.io.IOException
writeToFileOutputStream
in interface com.ximpleware.extended.IByteBuffer
java.io.IOException