|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.basex.io.in.XMLInput
public class XMLInput
This class provides methods for reading XML input and recursive entities. The input encoding will be guessed by analyzing the first bytes.
Constructor Summary | |
---|---|
XMLInput(IO io)
Constructor. |
Method Summary | |
---|---|
boolean |
add(byte[] val,
boolean s)
Inserts some bytes in the input stream. |
void |
close()
|
void |
encoding(java.lang.String e)
Sets a new encoding. |
IO |
io()
Returns the IO reference. |
long |
length()
Returns the file length. |
int |
line()
Returns the current line. |
int |
pos()
Returns the current file position. |
void |
prev(int p)
Jumps the specified number of characters back. |
int |
read()
|
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLInput(IO io) throws java.io.IOException
io
- input reference
java.io.IOException
- I/O exceptionMethod Detail |
---|
public void encoding(java.lang.String e) throws java.io.IOException
e
- encoding
java.io.IOException
- I/O exceptionpublic IO io()
public void prev(int p)
p
- number of characterspublic int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public boolean add(byte[] val, boolean s) throws java.io.IOException
val
- values to inserts
- add spaces
java.io.IOException
- I/O exceptionpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public int pos()
public int line()
public long length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |