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
ConstructorsConstructorDescriptionWriterOutputStream(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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
getWriter
-
getEncoding
-