|
||||||||||
| 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(String fileName)
|
void |
writeToFileOutputStream(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 void readFile(String fileName)
throws IOException,
ParseExceptionHuge
fileName -
IOException
ParseException
ParseExceptionHugepublic final byte byteAt(long index)
IByteBuffer
byteAt in interface IByteBuffer
public byte[] getBytes(int offset,
int len)
getBytes in interface IByteBufferoffset - int bytes offset (not UTF char unit)len - int
public long length()
length in interface IByteBufferpublic byte[] getBytes()
getBytes in interface IByteBuffer
public void writeToFileOutputStream(FileOutputStream ost,
long os,
long len)
throws IOException
writeToFileOutputStream in interface IByteBufferIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||