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
Fields 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
ConstructorDescriptionCreates a newSvetovidWriter
that outputs to the specified writer.Creates a newSvetovidWriter
that outputs to the specified output stream.Creates a newSvetovidWriter
that 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 newSvetovidWriter
that outputs to the specified writer.- Parameters:
out
- the writer to use for output
-
DefaultSvetovidWriter
Creates a newSvetovidWriter
that outputs to the specified writer.- Parameters:
out
- the writer to use for output
-
DefaultSvetovidWriter
Creates a newSvetovidWriter
that outputs to the specified output stream.- Parameters:
out
- the output stream to use for output
-
-
Method Details
-
close
Description copied from interface:SvetovidWriter
Closes this writer and releases any resources associated with the underlying stream. The general contract ofclose
is that it closes the output stream. A closed stream cannot perform output operations and cannot be reopened.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSvetovidWriter
- Overrides:
close
in classAbstractSvetovidWriter
- Throws:
SvetovidIOException
- if an error occurred during the operation.
-
doPrint
- Specified by:
doPrint
in classAbstractSvetovidWriter
- Throws:
IOException
-
doFlush
- Specified by:
doFlush
in classAbstractSvetovidWriter
- Throws:
IOException
-
doPrintln
- Specified by:
doPrintln
in classAbstractSvetovidWriter
- Throws:
IOException
-