com.atlassian.core.util.xml
Class BOMZipFileInputStream
java.lang.Object
java.io.InputStream
com.atlassian.core.util.xml.BOMZipFileInputStream
- public class BOMZipFileInputStream
- extends java.io.InputStream
An input streams that handles Unicode Byte-Order Mark (BOM) marker within a normal file as well as a ZIP file.
Distilled and adapted from http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206835
|
Method Summary |
int |
read()
|
| Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF32BEBOMBYTES
public static final byte[] UTF32BEBOMBYTES
UTF32LEBOMBYTES
public static final byte[] UTF32LEBOMBYTES
UTF16BEBOMBYTES
public static final byte[] UTF16BEBOMBYTES
UTF16LEBOMBYTES
public static final byte[] UTF16LEBOMBYTES
UTF8BOMBYTES
public static final byte[] UTF8BOMBYTES
BOMBYTES
public static final byte[][] BOMBYTES
NONE
public static final int NONE
- See Also:
- Constant Field Values
MAXBOMBYTES
public static final int MAXBOMBYTES
- No bom sequence is longer than 4 bytes
- See Also:
- Constant Field Values
BOMZipFileInputStream
public BOMZipFileInputStream(java.lang.String fileName)
throws java.io.IOException,
java.io.FileNotFoundException
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.