public abstract class AbstractCodepageDetector extends Object implements ICodepageDetector
This implementation provides the default implementation for the high-level codepage detection method
open(URL)of the implemented interface ICodepageProcessor.
Also the Comparable interface implementation is provided here by comparing the class-name strings of the implementations.
| 构造器和说明 |
|---|
AbstractCodepageDetector() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Object o) |
Charset |
detectCodepage(URL url)
Delegates to
ICodepageDetector.detectCodepage(java.io.InputStream, int) with a buffered input stream. |
Reader |
open(URL url)
A default delegation to
detectCodepage(URL)that opens the document specified by the given URL with the
detected codepage. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetectCodepagepublic Charset detectCodepage(URL url) throws IOException
ICodepageDetector.detectCodepage(java.io.InputStream, int) with a buffered input stream.
detectCodepage 在接口中 ICodepageDetectorCharsetthat represents the
document's codepage.IOException - thrown to indicate that it is was not possible to open the
document specified by the given URL.ICodepageDetector.detectCodepage(URL)public final Reader open(URL url) throws IOException
detectCodepage(URL)that opens the document specified by the given URL with the
detected codepage.
open 在接口中 ICodepageDetectorIOException - thrown to indicate that it is was not possible to open the
document specified by the given URL.ICodepageDetector.open(URL)public int compareTo(Object o)
compareTo 在接口中 ComparableComparable.compareTo(Object)Copyright © 2016. All rights reserved.