| java.lang.Object org.netbeans.modules.visualweb.insync.EncodingHelper
EncodingHelper | public class EncodingHelper extends Object (Code) | | XML uses inband encoding detection - this class obtains it.
author: Petr Kuzel version: 1.0 |
autoDetectEncoding | static String autoDetectEncoding(byte[] buf) throws IOException(Code) | | Java encoding family identifier or null for unrecognized |
detectDeclaredEncoding | static String detectDeclaredEncoding(byte[] data, String baseEncoding) throws IOException(Code) | | Look for encoding='' anyway stop at ?>
found encoding or null if none declared |
detectEncoding | public static String detectEncoding(InputStream in) throws IOException(Code) | | Detect input stream encoding.
The stream stays intact.
java encoding names ("UTF8", "ASCII", etc.) or nullif the stream is not markable or enoding cannot be detected. |
detectEncoding | public static String detectEncoding(Document doc) throws IOException(Code) | | Document itself is encoded as Unicode, but in
the document prolog is an encoding attribute.
java encoding names ("UTF8", "ASCII", etc.) or null if no guess |
parseMIMECharSet | static String parseMIMECharSet(String mime)(Code) | | Parse MIME content type for attributes.
|
|
|