gov.nih.nlm.util
Class UTF8OutputStreamWriter
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
gov.nih.nlm.util.UTF8OutputStreamWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class UTF8OutputStreamWriter
- extends OutputStreamWriter
An OutputStreamWriter that can make the first 3 bytes
the UTF8 Byte Order Mark (BOM) bytes.
- Author:
- Deborah Shapiro
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF8OutputStreamWriter
public UTF8OutputStreamWriter(OutputStream output_stream,
boolean write_bom)
throws UnsupportedEncodingException,
IOException
- Instantiates an
UTF8OutputStreamWriter. Can prepend the UTF8 byte
lorder mark (BOM) to the output.
- Parameters:
output_stream - the OutputStreamwrite_bom - true if byte order mark should be written
false otherwise
- Throws:
UnsupportedEncodingException - if "UTF-8" is not supported
IOException - if anything goes wrong
UTF8OutputStreamWriter
public UTF8OutputStreamWriter(OutputStream output_stream)
throws UnsupportedEncodingException,
IOException
- Instantiates an
UTF8OutputStreamWriter. Does not prepend the UTF8 byte
order mark (BOM) to the output.
- Parameters:
output_stream - the OutputStream
- Throws:
UnsupportedEncodingException - if "UTF-8" is not supported
IOException - if anything goes wrong
Copyright ©2005