public interface EntryWriter extends Closeable, Flushable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this entry writer, flushing it first.
|
void |
flush()
Flushes this entry writer so that any buffered data is written
immediately to underlying stream, flushing the stream if it is also
Flushable. |
EntryWriter |
writeComment(CharSequence comment)
Writes a comment.
|
EntryWriter |
writeEntry(Entry entry)
Writes an entry.
|
void close() throws IOException
close in interface AutoCloseableclose in interface CloseableIOException - If an unexpected IO error occurred while closing.void flush() throws IOException
Flushable.
If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
flush in interface FlushableIOException - If an unexpected IO error occurred while flushing.EntryWriter writeComment(CharSequence comment) throws IOException
comment - The CharSequence to be written as a comment.IOException - If an unexpected IO error occurred while writing the comment.NullPointerException - If comment was null.EntryWriter writeEntry(Entry entry) throws IOException
entry - The Entry to be written.IOException - If an unexpected IO error occurred while writing the entry.NullPointerException - If entry was null.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.