|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.build.xml.XMLInput
public final class XMLInput
This class provides a convenient access to the XML input.
Constructor Summary | |
---|---|
XMLInput(IO f)
Constructor. |
Method Summary | |
---|---|
boolean |
add(byte[] val,
boolean s)
Inserts some bytes in the input stream. |
void |
encoding(String e)
Sets a new encoding. |
void |
finish()
Finishes file input. |
long |
length()
Returns the file length. |
int |
next()
Reads the next character from the cached input buffers. |
int |
pos()
Returns the current file position. |
void |
prev(int p)
Jumps the specified number of characters back. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLInput(IO f) throws IOException
f
- file reference
IOException
- I/O exceptionMethod Detail |
---|
public void encoding(String e) throws IOException
e
- encoding
IOException
- I/O exceptionpublic void prev(int p)
p
- number of characterspublic int next() throws IOException
IOException
- I/O exceptionpublic boolean add(byte[] val, boolean s)
val
- values to inserts
- add spaces
public void finish() throws IOException
IOException
- I/O exceptionpublic int pos()
public long length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |