gov.nih.nlm.util
Class UTF8InputStreamReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
gov.nih.nlm.util.UTF8InputStreamReader
- All Implemented Interfaces:
- Closeable, Readable
public class UTF8InputStreamReader
- extends InputStreamReader
An InputStreamReader that ignores the first 3 bytes if they
are the UTF8 Byte Order Mark (BOM) bytes.
- Author:
- Deborah Shapiro
|
Method Summary |
boolean |
hasByteOrderMark()
Indicates if the input stream has a Byte Order Mark or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF8InputStreamReader
public UTF8InputStreamReader(BufferedInputStream input_stream)
throws UnsupportedEncodingException,
IOException
- Instantiates an
UTF8InputStreamReader.
- Parameters:
input_stream - BufferedInputStream
- Throws:
UnsupportedEncodingException - if "UTF-8" is not suported
IOException - if anything goes wrong
hasByteOrderMark
public boolean hasByteOrderMark()
- Indicates if the input stream has a Byte Order Mark or not.
- Returns:
true if input stream has BOM
false otherwise
Copyright ©2005