public class XMLBuffer
extends java.lang.Object
implements com.ximpleware.extended.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)
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()
length
in interface com.ximpleware.extended.IByteBuffer
public void readFile(java.lang.String fileName) throws java.io.IOException, ParseExceptionHuge
fileName
- java.io.IOException
ParseException
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