com.liferay.portal.kernel.io
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
com.liferay.portal.kernel.io.WriterOutputStream
- All Implemented Interfaces:
- Closeable, Flushable, AutoCloseable
public class WriterOutputStream
- extends OutputStream
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriterOutputStream
public WriterOutputStream(Writer writer)
WriterOutputStream
public WriterOutputStream(Writer writer,
String charsetName)
WriterOutputStream
public WriterOutputStream(Writer writer,
String charsetName,
boolean autoFlush)
WriterOutputStream
public WriterOutputStream(Writer writer,
String charsetName,
int outputBufferSize)
WriterOutputStream
public WriterOutputStream(Writer writer,
String charsetName,
int outputBufferSize,
boolean autoFlush)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface AutoCloseable- Overrides:
close in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException
getEncoding
public String getEncoding()
write
public void write(byte[] bytes)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] bytes,
int offset,
int length)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException