Package net.ontopia.topicmaps.utils.jtm
Class JTMEncodingSniffer
- java.lang.Object
-
- net.ontopia.topicmaps.utils.jtm.JTMEncodingSniffer
-
- All Implemented Interfaces:
EncodingSnifferIF
public class JTMEncodingSniffer extends Object implements EncodingSnifferIF
INTERNAL: An encoding sniffer for JTM.
-
-
Constructor Summary
Constructors Constructor Description JTMEncodingSniffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
guessEncoding(PushbackInputStream stream)
INTERNAL: By examining the contents of the stream, guess the encoding used.
-
-
-
Method Detail
-
guessEncoding
public String guessEncoding(PushbackInputStream stream) throws IOException
Description copied from interface:EncodingSnifferIF
INTERNAL: By examining the contents of the stream, guess the encoding used.- Specified by:
guessEncoding
in interfaceEncodingSnifferIF
- Returns:
- the name of the encoding
- Throws:
IOException
-
-