Package org.gbif.utils.file
Class BomSafeInputStreamWrapperTest
java.lang.Object
org.gbif.utils.file.BomSafeInputStreamWrapperTest
- Author:
- markus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidThe Java SAX Parser is known to have problems with UTF8 file that contain a proper BOM markup: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4508058 https://de.wikipedia.org/wiki/Byte_Order_Mark Make sure the SAX Parser can handle any valid UTF files by using a BomSafeInputStreamWrapper stream.void
-
Constructor Details
-
BomSafeInputStreamWrapperTest
public BomSafeInputStreamWrapperTest()
-
-
Method Details
-
testSaxParser
The Java SAX Parser is known to have problems with UTF8 file that contain a proper BOM markup: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4508058 https://de.wikipedia.org/wiki/Byte_Order_Mark Make sure the SAX Parser can handle any valid UTF files by using a BomSafeInputStreamWrapper stream.- Throws:
Exception
-
testUTF16Stream
- Throws:
Exception
-
testBomSafeInputStreamWrapper
- Throws:
Exception
-