public class JulieXMLMemMappedBuffer extends Object implements com.ximpleware.extended.IByteBuffer
XMLMemMappedBuffer of VTD XML 2.11 and added writeToPipe
for having a method to get fragments of an XML document without writing these
fragments directly to a file.| Constructor and Description |
|---|
JulieXMLMemMappedBuffer() |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(long index) |
void |
close() |
byte[] |
getBytes()
NOt implemented yet
|
byte[] |
getBytes(int offset,
int len)
not implemented yet
|
long |
length() |
void |
readFile(String fileName) |
void |
writeToFileOutputStream(FileOutputStream ost,
long os,
long len)
write the segment (denoted by its offset and length) into a file output
file stream
|
void |
writeToPipe(Pipe pipe,
long os,
long len)
write the segment (denoted by its offset and length) into an output file
stream
|
public long length()
length in interface com.ximpleware.extended.IByteBufferpublic byte byteAt(long index)
byteAt in interface com.ximpleware.extended.IByteBufferpublic void readFile(String fileName) throws IOException, com.ximpleware.extended.ParseExceptionHuge
IOExceptioncom.ximpleware.extended.ParseExceptionHugepublic byte[] getBytes()
getBytes in interface com.ximpleware.extended.IByteBufferpublic byte[] getBytes(int offset,
int len)
getBytes in interface com.ximpleware.extended.IByteBufferpublic void writeToFileOutputStream(FileOutputStream ost, long os, long len) throws IOException
writeToFileOutputStream in interface com.ximpleware.extended.IByteBufferIOExceptionpublic void writeToPipe(Pipe pipe, long os, long len) throws IOException
IOExceptionpublic void close()
close in interface com.ximpleware.extended.IByteBufferCopyright © 2017 JULIE Lab Jena, Germany. All rights reserved.