superwaba.ext.xplat.util.xml
Class RecordsStreamBuffer
java.lang.Object
|
+--superwaba.ext.xplat.util.xml.StreamBuffer
|
+--superwaba.ext.xplat.util.xml.RecordsStreamBuffer
- public class RecordsStreamBuffer
- extends StreamBuffer
This class adds support for parsing a Xml file splitted into different records of a Catalog.
It is useful if your xml is too big to fit in a single record.
Important! Each record must be written with DataStream.writeString and it must
contain a single String, because the first 2 bytes of each record are skipped
(they store the length of the String).
Constructor Summary |
RecordsStreamBuffer(Catalog cat,
int size,
int startRec,
int endRec)
The records used in the catalog will be parsed from startRec to endRec |
Method Summary |
int |
fill()
Called from XmlLiteParser to get more data to parse |
endRec
protected int endRec
cat
protected Catalog cat
RecordsStreamBuffer
public RecordsStreamBuffer(Catalog cat,
int size,
int startRec,
int endRec)
- The records used in the catalog will be parsed from startRec to endRec
fill
public int fill()
- Called from XmlLiteParser to get more data to parse
- Overrides:
- fill in class StreamBuffer
- Tags copied from class: StreamBuffer
- Returns:
- The number of bytes written.