com.liferay.portal.kernel.io
Class OutputStreamWriter
java.lang.Object
java.io.Writer
com.liferay.portal.kernel.io.OutputStreamWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable, AutoCloseable
public class OutputStreamWriter
- extends Writer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputStreamWriter
public OutputStreamWriter(OutputStream outputStream)
OutputStreamWriter
public OutputStreamWriter(OutputStream outputStream,
String charsetName)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in interface AutoCloseable
- Specified by:
close
in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
- Throws:
IOException
getEncoding
public String getEncoding()
write
public void write(char[] chars,
int offset,
int length)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
write
public void write(int c)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String string,
int offset,
int length)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException