Package org.apache.xmlgraphics.util
Class WriterOutputStream
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-