|
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-expressions
public 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
IOExceptionSexpTokenizer.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
IOExceptionSexpTokenizer.SexpTokenizer(String,String,int)| Method Detail |
|---|
public Object readObject()
throws IOException
readObject in interface ObjectReaderIOException
public void close()
throws IOException
close in interface ObjectReaderIOException - 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 | |||||||||