BOM that was detected in the wrapped
InputStream object.BOM value.BOM that was found in the wrapped
InputStream object.String representation of this BOM
value.UnicodeBOMInputStream class wraps any
InputStream and detects the presence of any Unicode BOM
(Byte Order Mark) at its beginning, as defined by
RFC 3629 - UTF-8, a
transformation format of ISO 10646
The
Unicode FAQ
defines 5 types of BOMs:
00 00 FE FF = UTF-32, big-endian
FF FE 00 00 = UTF-32, little-endian
FE FF = UTF-16, big-endian
FF FE = UTF-16, little-endian
EF BB BF = UTF-8
Use the UnicodeBOMInputStream.getBOM() method to know whether a BOM has been detected
or not.UnicodeBOMInputStream that wraps the
specified InputStream.UnicodeBOMInputStream that wraps the
specified InputStream.Copyright © 2017. All rights reserved.