|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.SexpObjectReader
public class SexpObjectReader
Reads an underlying stream with a SexpTokenizer
,
reading each S-expression as a object and returning it when
readObject()
is invoked.
Constructor Summary | |
---|---|
SexpObjectReader(InputStream in)
Constructs a new instance, reading S-expressions from the specified input stream using the default character encoding. |
|
SexpObjectReader(InputStream in,
String encoding,
int bufSize)
Constructs a new object reader from the specified filename, file encoding and buffer size, by building a SexpTokenizer
from the specified arguments. |
|
SexpObjectReader(String filename,
String encoding,
int bufSize)
Constructs a new object reader from the specified filename, file encoding and buffer size, by building a SexpTokenizer
from the specified arguments. |
Method Summary | |
---|---|
void |
close()
Closes the underlying stream for this reader. |
Object |
readObject()
Reads the next S-expression from the underlying S-expression reader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SexpObjectReader(InputStream in)
in
- the input stream from which to read S-expressionspublic SexpObjectReader(InputStream in, String encoding, int bufSize) throws IOException
SexpTokenizer
from the specified arguments.
in
- the input stream from which to read S-expressionsencoding
- the character encoding to use when reading from the
specified filebufSize
- the buffer size to use when reading from the specified
file
IOException
SexpTokenizer.SexpTokenizer(InputStream,String,int)
public SexpObjectReader(String filename, String encoding, int bufSize) throws IOException
SexpTokenizer
from the specified arguments.
filename
- the filename from which to read S-expressionsencoding
- the character encoding to use when reading from the
specified filebufSize
- the buffer size to use when reading from the specified
file
IOException
SexpTokenizer.SexpTokenizer(String,String,int)
Method Detail |
---|
public Object readObject() throws IOException
readObject
in interface ObjectReader
IOException
public void close() throws IOException
close
in interface ObjectReader
IOException
- if there is a problem closing the underlying stream
for this reader
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |