com.ximpleware.extended
Class XMLMemMappedBuffer

java.lang.Object
  extended by com.ximpleware.extended.XMLMemMappedBuffer
All Implemented Interfaces:
com.ximpleware.extended.IByteBuffer

public class XMLMemMappedBuffer
extends java.lang.Object
implements com.ximpleware.extended.IByteBuffer

XMLMemMappedBuffer maps an XML document into memory using memory map. It avoids the complete loading of the document in memory thus making it possible to process very large files. But the trade off is potentially lower performance due to disk IO.


Constructor Summary
XMLMemMappedBuffer()
           
 
Method Summary
 byte byteAt(long index)
           
 byte[] getBytes()
          NOt implemented yet
 byte[] getBytes(int offset, int len)
          not implemented yet
 long length()
           
 void readFile(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMemMappedBuffer

public XMLMemMappedBuffer()
Method Detail

byteAt

public byte byteAt(long index)
Specified by:
byteAt in interface com.ximpleware.extended.IByteBuffer

getBytes

public byte[] getBytes()
NOt implemented yet

Specified by:
getBytes in interface com.ximpleware.extended.IByteBuffer

getBytes

public byte[] getBytes(int offset,
                       int len)
not implemented yet

Specified by:
getBytes in interface com.ximpleware.extended.IByteBuffer

length

public long length()
Specified by:
length in interface com.ximpleware.extended.IByteBuffer

readFile

public void readFile(java.lang.String fileName)
              throws java.io.IOException,
                     ParseExceptionHuge
Throws:
java.io.IOException
ParseExceptionHuge