public class JulieXMLBuffer extends Object implements com.ximpleware.extended.IByteBuffer
| Constructor and Description |
|---|
JulieXMLBuffer() |
JulieXMLBuffer(byte[] ba) |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(long index) |
byte[] |
getBytes() |
byte[] |
getBytes(int offset,
int len)
Return a byte array filled with content from underlying byte storage.
|
byte[] |
getFragment(long os,
long len) |
long |
length()
Total size in terms of # of bytes.
|
void |
readFile(String fileName) |
void |
writeToFileOutputStream(FileOutputStream ost,
long os,
long len) |
public JulieXMLBuffer()
public JulieXMLBuffer(byte[] ba)
public void readFile(String fileName) throws IOException, com.ximpleware.extended.ParseExceptionHuge
fileName - IOExceptioncom.ximpleware.ParseExceptioncom.ximpleware.extended.ParseExceptionHugepublic final byte byteAt(long index)
byteAt 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()
length in interface com.ximpleware.extended.IByteBufferpublic byte[] getBytes()
getBytes in interface com.ximpleware.extended.IByteBufferpublic void writeToFileOutputStream(FileOutputStream ost, long os, long len) throws IOException
writeToFileOutputStream in interface com.ximpleware.extended.IByteBufferIOExceptionpublic byte[] getFragment(long os,
long len)
throws IOException
IOExceptionCopyright © 2016 JULIE Lab Jena, Germany. All rights reserved.