public class ByteOrderMarkSniffer extends BaseEncodingSniffer
EncodingSniffer
that peek the content for
Byte Order Mark bytes.
This is the step 3 of character encoding sniffing prescribed by WHAT-NG.
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BOM_LEN |
CHARSET_TOKEN, HTTP_CONTENT_TYPE_HEADER
Constructor and Description |
---|
ByteOrderMarkSniffer() |
Modifier and Type | Method and Description |
---|---|
String |
sniff(Resource resource) |
contentTypeToCharset, isCharsetSupported, mapCharset
public static final int MAX_BOM_LEN
public String sniff(Resource resource)
sniff
in interface EncodingSniffer
sniff
in class BaseEncodingSniffer
Copyright © 2005–2015 IIPC. All rights reserved.