java.lang.Object
java.io.InputStream
org.glavo.chardet.EncodingDetectorInputStream
- 所有已实现的接口:
Closeable,AutoCloseable
Stream that detects encoding while reading.
The normal usage is to fully read from inputstream and call close before check for charset.
-
构造器概要
构造器 -
方法概要
从类继承的方法 java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
构造器详细资料
-
EncodingDetectorInputStream
Create the stream- 参数:
in- The InputStream to read from
-
-
方法详细资料
-
available
- 覆盖:
available在类中InputStream- 抛出:
IOException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中InputStream- 抛出:
IOException
-
mark
public void mark(int readlimit) - 覆盖:
mark在类中InputStream
-
markSupported
public boolean markSupported()- 覆盖:
markSupported在类中InputStream
-
read
- 指定者:
read在类中InputStream- 抛出:
IOException
-
read
- 覆盖:
read在类中InputStream- 抛出:
IOException
-
read
- 覆盖:
read在类中InputStream- 抛出:
IOException
-
reset
- 覆盖:
reset在类中InputStream- 抛出:
IOException
-
skip
- 覆盖:
skip在类中InputStream- 抛出:
IOException
-
getDetectedCharset
Gets the detected charset, null if not yet detected.- 返回:
- The detected charset
-