|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ximpleware.extended.XMLBuffer
public class XMLBuffer
XMLBuffer is a class that reads in an XML doc into chunk-based memory buffers the file size is equal to n*1GB + m (where m < 1GB)
| Constructor Summary | |
|---|---|
XMLBuffer()
|
|
XMLBuffer(byte[] ba)
|
|
| Method Summary | |
|---|---|
byte |
byteAt(long index)
Get the byte at the given index of the underlying byte storage. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLBuffer()
public XMLBuffer(byte[] ba)
| Method Detail |
|---|
public final byte byteAt(long index)
com.ximpleware.extended.IByteBuffer
byteAt in interface com.ximpleware.extended.IByteBufferpublic byte[] getBytes()
getBytes in interface com.ximpleware.extended.IByteBuffer
public byte[] getBytes(int offset,
int len)
getBytes in interface com.ximpleware.extended.IByteBufferoffset - int bytes offset (not UTF char unit)len - int
public 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.IByteBufferjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||