gov.lanl.archive.rewrite.charset
Class StandardCharsetDetector
java.lang.Object
gov.lanl.archive.rewrite.charset.CharsetDetector
gov.lanl.archive.rewrite.charset.StandardCharsetDetector
public class StandardCharsetDetector
- extends CharsetDetector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardCharsetDetector
public StandardCharsetDetector()
getCharset
public String getCharset(InputStream resource,
String ctype)
throws IOException
- Specified by:
getCharset
in class CharsetDetector
- Parameters:
resource
- (presumably text) Resource to determine the charset
- Returns:
- String charset name for the Resource
- Throws:
IOException
- if there are problems reading the Resource
Copyright © 2013. All Rights Reserved.