|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.EventCountsWriterFactory
public class EventCountsWriterFactory
Constructor Summary | |
---|---|
EventCountsWriterFactory()
Constructs a new EventCountsWriterFactory . |
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 EventCountsWriterFactory()
EventCountsWriterFactory
.
Method Detail |
---|
public ObjectWriter get(OutputStream os, boolean append, boolean emptyFile) throws IOException
ObjectWriterFactory
ObjectWriter
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 ObjectWriterFactory
os
- the output stream around which to build an
ObjectWriter
append
- 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
ObjectWriterFactory
ObjectWriter
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 ObjectWriterFactory
os
- the output stream around which to build an
ObjectWriter
encoding
- 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
ObjectWriterFactory
ObjectWriter
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 ObjectWriterFactory
filename
- the name of an output file around which to build an
ObjectWriter
encoding
- 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 |