Package org.svetovid.io
Class DefaultSvetovidWriter
java.lang.Object
org.svetovid.io.AbstractSvetovidWriter
org.svetovid.io.DefaultSvetovidWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,SvetovidWriter
- Direct Known Subclasses:
StandardSvetovidErrorWriter,StandardSvetovidWriter
This class provides a most commonly used implementation for the
SvetovidWriter interface.
- Author:
- Ivan Pribela
- See Also:
-
Field Summary
FieldsFields inherited from class org.svetovid.io.AbstractSvetovidWriter
autoFlush, BEGIN_ARRAY, BEGIN_OBJECT, END_ARRAY, END_OBJECT, INDENT, lastException, LINE_SEPARATOR, LITERAL_FALSE, LITERAL_NULL, LITERAL_TRUE, NAME_SEPARATOR, STRING_QUOTE, throwingExceptions, VALUE_SEPARATOR, whitespace -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newSvetovidWriterthat outputs to the specified writer.Creates a newSvetovidWriterthat outputs to the specified output stream.Creates a newSvetovidWriterthat outputs to the specified writer. -
Method Summary
Methods inherited from class org.svetovid.io.AbstractSvetovidWriter
appendObject, getAutoFlush, getLastException, getWhitespace, isThrowingExceptions, print, print, print, print, print, print, print, print, print, print, print, printbf, printf, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, println, printObject, setAutoFlush, setThrowingExceptions, setWhitespace, wrapUpIOException
-
Field Details
-
writer
-
-
Constructor Details
-
DefaultSvetovidWriter
Creates a newSvetovidWriterthat outputs to the specified writer.- Parameters:
out- the writer to use for output
-
DefaultSvetovidWriter
Creates a newSvetovidWriterthat outputs to the specified writer.- Parameters:
out- the writer to use for output
-
DefaultSvetovidWriter
Creates a newSvetovidWriterthat outputs to the specified output stream.- Parameters:
out- the output stream to use for output
-
-
Method Details
-
close
Description copied from interface:SvetovidWriterCloses this writer and releases any resources associated with the underlying stream. The general contract ofcloseis that it closes the output stream. A closed stream cannot perform output operations and cannot be reopened.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSvetovidWriter- Overrides:
closein classAbstractSvetovidWriter- Throws:
SvetovidIOException- if an error occurred during the operation.
-
doPrint
- Specified by:
doPrintin classAbstractSvetovidWriter- Throws:
IOException
-
doFlush
- Specified by:
doFlushin classAbstractSvetovidWriter- Throws:
IOException
-
doPrintln
- Specified by:
doPrintlnin classAbstractSvetovidWriter- Throws:
IOException
-