| Modifier and Type | Field and Description |
|---|---|
| private ListIterator | |
| private final LinkedList | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | BufferedXMLEventReader(XMLEventReader reader)
Create new buffering reader, no buffering is done until |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | close()
Overrides javax. Implements javax. |
| public List | |
| public boolean | hasNext()
Overrides javax. Implements javax. |
| protected XMLEvent | internalNextEvent()
Implements abstract org. nextEvent(), called by next()
|
| public void | |
| public void | mark(int
the maximum number of events to buffer. -1 will buffer all events, 0 will buffer no events. eventLimit)Start buffering events |
| public XMLEvent | peek()
Overrides javax. Implements javax. |
| public void | remove()
Overrides javax. Overrides default java. reset() call an IllegalStateException will be thrown.
|
| public void |
| bufferReader | back to summary |
|---|---|
| private ListIterator<XMLEvent> bufferReader | |
| eventBuffer | back to summary |
|---|---|
| private final LinkedList<XMLEvent> eventBuffer | |
| eventLimit | back to summary |
|---|---|
| private int eventLimit | |
| BufferedXMLEventReader | back to summary |
|---|---|
| public BufferedXMLEventReader(XMLEventReader reader) Create new buffering reader, no buffering is done until | |
| BufferedXMLEventReader | back to summary |
|---|---|
| public BufferedXMLEventReader(XMLEventReader reader, int eventLimit) Create new buffering reader. Calls
| |
| bufferSize | back to summary |
|---|---|
public int bufferSize()
| |
| close | back to summary |
|---|---|
| public void close() throws XMLStreamException Overrides javax. Implements javax. Doc from javax. Frees any resources associated with this Reader. This method does not close the underlying input source.
| |
| getBuffer | back to summary |
|---|---|
| public List | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Overrides javax. Implements javax. Doc from javax. Check if there are more events. Returns true if there are more events and false otherwise.
| |
| internalNextEvent | back to summary |
|---|---|
| protected XMLEvent internalNextEvent() throws XMLStreamException Implements abstract org. Doc from org. Subclass's version of
| |
| mark | back to summary |
|---|---|
| public void mark() Same as calling | |
| mark | back to summary |
|---|---|
| public void mark(int eventLimit) Start buffering events
| |
| peek | back to summary |
|---|---|
| public XMLEvent peek() throws XMLStreamException Overrides javax. Implements javax. Doc from javax. Check the next XMLEvent without reading it from the stream. Returns null if the stream is at EOF or has no more XMLEvents. A call to peek() will be equal to the next return of next().
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides javax. Overrides default java. If reading from the buffer after a
| |
| reset | back to summary |
|---|---|
| public void reset() Reset the reader to these start of the buffered events. | |