Package org.pentaho.di.core
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
org.pentaho.di.core.WriterOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
This class provides a simple wrapper to disguise a Writer as an OutputStream.
- Author:
- matt
-
Constructor Summary
ConstructorDescriptionWriterOutputStream
(Writer writer) WriterOutputStream
(Writer writer, String encoding) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
WriterOutputStream
-
WriterOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
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
-
getWriter
-
getEncoding
-