java.lang.Object
java.io.OutputStream
org.apache.xmlgraphics.util.WriterOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An OutputStream wrapper for a Writer.
-
Constructor Summary
ConstructorsConstructorDescriptionWriterOutputStream(Writer writer) Creates a new WriterOutputStream.WriterOutputStream(Writer writer, String encoding) Creates a new WriterOutputStream. -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
WriterOutputStream
Creates a new WriterOutputStream.- Parameters:
writer- the Writer to write to
-
WriterOutputStream
Creates a new WriterOutputStream.- Parameters:
writer- the Writer to write toencoding- the encoding to use, or null if the default encoding should be used
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-