|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.cpdetector.io.AbstractCodepageDetector
public abstract class AbstractCodepageDetector
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.
| Constructor Summary | |
|---|---|
AbstractCodepageDetector()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface info.monitorenter.cpdetector.io.ICodepageDetector |
|---|
detectCodepage |
| Constructor Detail |
|---|
public AbstractCodepageDetector()
| Method Detail |
|---|
public Charset detectCodepage(URL url)
throws IOException
ICodepageDetector.detectCodepage(java.io.InputStream, int) with a buffered input stream.
detectCodepage in interface 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 in interface ICodepageDetectorIOException - thrown to indicate that it is was not possible to open the
document specified by the given URL.ICodepageDetector.open(java.net.URL)public int compareTo(Object o)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||