public class XMLInput
extends java.io.InputStream
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte[] val,
boolean s)
Inserts some bytes in the input stream.
|
void |
close() |
byte[] |
content()
Retrieves and returns the whole text and closes the stream.
|
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() |
public XMLInput(IO io) throws java.io.IOException
io - input referencejava.io.IOException - I/O exceptionpublic void encoding(java.lang.String e)
throws java.io.IOException
e - encodingjava.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.InputStreamjava.io.IOExceptionpublic boolean add(byte[] val,
boolean s)
throws java.io.IOException
val - values to inserts - add spacesjava.io.IOException - I/O exceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int pos()
public int line()
public long length()
public byte[] content()
throws java.io.IOException
java.io.IOException - I/O exception