|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanbikel.switchboard.TextObjectWriterFactory
public class TextObjectWriterFactory
A factory for returning TextObjectWriter objects.
This factory is provided as a convenient output mechanism to
complement custom ObjectReader factories that are
using character-based input.
TextObjectWriter| Constructor Summary | |
|---|---|
TextObjectWriterFactory()
Constructs a new TextObjectWriterFactory. |
|
| Method Summary | |
|---|---|
ObjectWriter |
get(OutputStream os,
boolean append,
boolean emptyFile)
Returns a newly-constructed ObjectWriter using the specified
stream. |
ObjectWriter |
get(OutputStream os,
String encoding,
int bufSize,
boolean append,
boolean emptyFile)
Returns a newly-constructed ObjectWriter using the
specified stream. |
ObjectWriter |
get(String filename,
String encoding,
int bufSize,
boolean append)
Returns a newly-constructed ObjectWriter using the
specified stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextObjectWriterFactory()
TextObjectWriterFactory.
| Method Detail |
|---|
public ObjectWriter get(OutputStream os,
boolean append,
boolean emptyFile)
throws IOException
ObjectWriterFactoryObjectWriter using the specified
stream. The two final arguments, append and
emptyFile, should be used to determine whether
stream header information needs to be written (by stream
implementations that use headers, such as
ObjectOutputStream).
get in interface ObjectWriterFactoryos - the output stream around which to build an
ObjectWriterappend - if true, indicates that the output stream
belongs to a file that is being appended toemptyFile - indicates whether the underlying file (if there is one)
for the output stream is currently empty
IOException
public ObjectWriter get(OutputStream os,
String encoding,
int bufSize,
boolean append,
boolean emptyFile)
throws IOException
ObjectWriterFactoryObjectWriter using the
specified stream. If the underlying writer is character-based,
the encoding argument will be used; otherwise, it will be
ignored. The bufSize argument should be used by
ObjectWriter implementations for construction of a
buffered stream or Writer. The two final arguments,
append and emptyFile, should be
used to determine whether stream header information needs to be
written (by stream implementations that use headers, such as
ObjectOutputStream).
get in interface ObjectWriterFactoryos - the output stream around which to build an
ObjectWriterencoding - the character encoding to be used (ignored if
the ObjectWriter implementor returned by this factory
is not character-based)bufSize - the suggested buffer size to be used by
ObjectWriter objects returned by this factoryappend - if true, indicates that the output stream
belongs to a file that is being appended toemptyFile - indicates whether the underlying file (if there is one)
for the output stream is currently empty
IOException
public ObjectWriter get(String filename,
String encoding,
int bufSize,
boolean append)
throws IOException
ObjectWriterFactoryObjectWriter using the
specified stream. If the underlying writer is character-based,
the encoding argument will be used; otherwise, it will be
ignored. The bufSize argument should be used by
ObjectWriter implementations for construction of a
buffered stream or Writer.
get in interface ObjectWriterFactoryfilename - the name of an output file around which to build an
ObjectWriterencoding - the character encoding to be used (ignored if
the ObjectWriter implementor returned by this factory
is not character-based)bufSize - the suggested buffer size to be used by
ObjectWriter objects returned by this factoryappend - indicates whether to append to the opened file
IOException
|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||