|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
net.n3.nanoxml.PIReader
class PIReader
This reader reads data from another reader until the end of a processing instruction (?>) has been encountered.
| Field Summary | |
|---|---|
private boolean |
atEndOfData
True if the end of the stream has been reached. |
private IXMLReader |
reader
The encapsulated reader. |
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
PIReader(IXMLReader reader)
Creates the reader. |
|
| Method Summary | |
|---|---|
void |
close()
Skips remaining data and closes the stream. |
protected void |
finalize()
Cleans up the object when it's destroyed. |
int |
read(char[] buffer,
int offset,
int size)
Reads a block of data. |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private IXMLReader reader
private boolean atEndOfData
| Constructor Detail |
|---|
PIReader(IXMLReader reader)
reader - the encapsulated reader| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public int read(char[] buffer,
int offset,
int size)
throws java.io.IOException
read in class java.io.Readerbuffer - where to put the read dataoffset - first position in buffer to put the datasize - maximum number of chars to read
java.io.IOException - if an error occurred reading the data
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Readerjava.io.IOException - if an error occurred reading the data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||