Parsing Engine

danbikel.switchboard
Interface ObjectReaderFactory

All Known Implementing Classes:
SexpNumberedObjectReaderFactory, SexpObjectReaderFactory

public interface ObjectReaderFactory

A specification for constructing ObjectReader instances. This type of factory is used by the switchboard.

See Also:
ObjectReader, Switchboard

Method Summary
 ObjectReader get(InputStream in)
          Gets a new object reader for the specified input stream, using a default character encoding and buffer size, if applicable.
 ObjectReader get(InputStream in, String encoding, int bufSize)
          Gets a new object reader for the specified input stream.
 ObjectReader get(String filename, String encoding, int bufSize)
          Gets a new object reader for the specified filename.
 

Method Detail

get

ObjectReader get(InputStream in)
                 throws IOException
Gets a new object reader for the specified input stream, using a default character encoding and buffer size, if applicable.

Throws:
IOException

get

ObjectReader get(InputStream in,
                 String encoding,
                 int bufSize)
                 throws IOException
Gets a new object reader for the specified input stream. If the implementation is character-based, the specified encoding should be used; otherwise, the encoding argument should be ignored. Implementations should use buffering for their underlying read operations, using the specified buffer size (if possible).

Throws:
IOException

get

ObjectReader get(String filename,
                 String encoding,
                 int bufSize)
                 throws IOException
Gets a new object reader for the specified filename. If the implementation is character-based, the specified encoding should be used; otherwise, the encoding argument should be ignored. Implementations should use buffering for their underlying read operations, using the specified buffer size (if possible).

Throws:
IOException

Parsing Engine

Author: Dan Bikel.