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