Package de.julielab.xml
Class JulieXMLMemMappedBuffer
- java.lang.Object
-
- de.julielab.xml.JulieXMLMemMappedBuffer
-
- All Implemented Interfaces:
com.ximpleware.extended.IByteBuffer
public class JulieXMLMemMappedBuffer extends Object implements com.ximpleware.extended.IByteBuffer
Copied fromXMLMemMappedBufferof VTD XML 2.11 and addedwriteToPipefor having a method to get fragments of an XML document without writing these fragments directly to a file.- Author:
- faessler
-
-
Constructor Summary
Constructors Constructor Description JulieXMLMemMappedBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteAt(long index)voidclose()byte[]getBytes()NOt implemented yetbyte[]getBytes(int offset, int len)not implemented yetlonglength()voidreadFile(String fileName)voidwriteToFileOutputStream(FileOutputStream ost, long os, long len)write the segment (denoted by its offset and length) into a file output file streamvoidwriteToPipe(Pipe pipe, long os, long len)write the segment (denoted by its offset and length) into an output file stream
-
-
-
Method Detail
-
length
public long length()
- Specified by:
lengthin interfacecom.ximpleware.extended.IByteBuffer
-
byteAt
public byte byteAt(long index)
- Specified by:
byteAtin interfacecom.ximpleware.extended.IByteBuffer
-
readFile
public void readFile(String fileName) throws IOException, com.ximpleware.extended.ParseExceptionHuge
- Throws:
IOExceptioncom.ximpleware.extended.ParseExceptionHuge
-
getBytes
public byte[] getBytes()
NOt implemented yet- Specified by:
getBytesin interfacecom.ximpleware.extended.IByteBuffer
-
getBytes
public byte[] getBytes(int offset, int len)not implemented yet- Specified by:
getBytesin interfacecom.ximpleware.extended.IByteBuffer
-
writeToFileOutputStream
public void writeToFileOutputStream(FileOutputStream ost, long os, long len) throws IOException
write the segment (denoted by its offset and length) into a file output file stream- Specified by:
writeToFileOutputStreamin interfacecom.ximpleware.extended.IByteBuffer- Throws:
IOException
-
writeToPipe
public void writeToPipe(Pipe pipe, long os, long len) throws IOException
write the segment (denoted by its offset and length) into an output file stream- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfacecom.ximpleware.extended.IByteBuffer
-
-