@NotThreadSafe
public class StreamedMessagesWriter
extends Object
| Constructor and Description |
|---|
StreamedMessagesWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Serializable message)
Adds a message.
|
void |
close()
Closes the current file.
|
void |
flush()
Flushes the output.
|
void |
open(File file,
Optional<Charset> charset)
Opens an output.
|
void |
open(OutputStream outputStream,
Optional<Charset> charset)
Opens an output.
|
void |
open(Writer writer)
Opens an output.
|
void |
open(XMLElement parentElement)
Opens an output.
|
boolean |
setUp(Optional<KeyedGroups> configProperties,
Optional<KeyedValues> moduleProperties)
Sets up this.
|
void |
tearDown()
Tears down what has been set up.
|
@CheckReturnValue
public boolean add(@Nonnull
Serializable message)
message - The message.public void close()
public void flush()
public void open(@Nonnull
Writer writer)
writer - The output writer.public void open(@Nonnull
XMLElement parentElement)
parentElement - The output parent element.public void open(@Nonnull
File file,
@Nonnull
Optional<Charset> charset)
throws FileNotFoundException
file - The output file.charset - An optional charset.FileNotFoundException - When the file cannot be created.public void open(@Nonnull
OutputStream outputStream,
@Nonnull
Optional<Charset> charset)
outputStream - The output stream.charset - An optional charset.public void tearDown()
@CheckReturnValue
public boolean setUp(@Nonnull
Optional<KeyedGroups> configProperties,
@Nonnull
Optional<KeyedValues> moduleProperties)
configProperties - The optional configuration properties.moduleProperties - The optional module properties.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.