com.liferay.portal.kernel.io
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
com.liferay.portal.kernel.io.WriterOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class WriterOutputStream
- extends OutputStream
|
Constructor Summary |
WriterOutputStream(Writer writer)
|
WriterOutputStream(Writer writer,
String charsetName)
|
WriterOutputStream(Writer writer,
String charsetName,
boolean autoFlush)
|
WriterOutputStream(Writer writer,
String charsetName,
int inputBufferSize,
int outputBufferSize)
|
WriterOutputStream(Writer writer,
String charsetName,
int inputBufferSize,
int outputBufferSize,
boolean autoFlush)
|
| 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 inputBufferSize,
int outputBufferSize)
WriterOutputStream
public WriterOutputStream(Writer writer,
String charsetName,
int inputBufferSize,
int outputBufferSize,
boolean autoFlush)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- 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[] byteArray)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] byteArray,
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