|
Oracle® Database Globalization Development Kit Java API Reference 10g Release 2 (10.2) Part No. B14224-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.FilterInputStream | +--oracle.i18n.lcsd.LCSDetectionInputStream | +--oracle.i18n.lcsd.LCSDetectionHTMLInputStream
The LCSDetectionHTMLInputStream
class extends the LCSDetectionInputStream
class to support the language/encoding detection for
input in HTML format.
The detection sampling length indicates how many bytes of plain text on which the detection feature will perform. The default sampling length is 1K. Generally, LCSD handles the language/encoding detection, and you do not need to set this value. By allowing changes to this value, you can control the detection sampling length.
You can get the detection results from the LCSDResultSet
class if
needed.
Any read
method returns UTFDataFormatException
if the
source is UTF-8 data and an invalid UTF-8 sequence is found.
Field Summary |
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary | |
LCSDetectionHTMLInputStream(InputStream in)
Creates an LCSDetectionHTMLInputStream object. |
|
LCSDetectionHTMLInputStream(InputStream in,
int len)
Creates an LCSDetectionStream object with the specified
sampling length. |
|
LCSDetectionHTMLInputStream(String name,
InputStream in)
Creates an LCSDetectionStream object with the specified
profile for detection. |
|
LCSDetectionHTMLInputStream(String name,
InputStream in,
int len)
Creates an LCSDetectionStream object with the specified
sampling length and the specified profile for detection. |
Methods inherited from class oracle.i18n.lcsd.LCSDetectionInputStream |
getResult, read, read, read |
Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LCSDetectionHTMLInputStream(InputStream in) throws IOException, UTFDataFormatException
LCSDetectionHTMLInputStream
object. Use the
default sampling length and default profile for detection.
in
- input stream that you want to detect
IOException
- if any I/O error occurs
UTFDataFormatException
- if any invalid UTF-8 data sequence is
detected. Note this occurs only if the source is UTF-8 datapublic LCSDetectionHTMLInputStream(String name, InputStream in) throws IOException, UTFDataFormatException
LCSDetectionStream
object with the specified
profile for detection. Use the default sampling length.
name
- the profile namein
- input stream that you want to detect
IOException
- if any I/O error occurs
UTFDataFormatException
- if any invalid UTF-8 data sequence is
detected. Note this occurs only if the source is UTF-8 datapublic LCSDetectionHTMLInputStream(InputStream in, int len) throws IOException, UTFDataFormatException
LCSDetectionStream
object with the specified
sampling length. Use the default profile for detection.
in
- input stream that you want to detectlen
- the sampling length
IOException
- if any I/O error occurs
UTFDataFormatException
- if any invalid UTF-8 data sequence is
detected. Note this occurs only if the source is UTF-8 datapublic LCSDetectionHTMLInputStream(String name, InputStream in, int len) throws IOException, UTFDataFormatException
LCSDetectionStream
object with the specified
sampling length and the specified profile for detection.
name
- the profile namein
- input stream that you want to detectlen
- the sampling length
IOException
- if any I/O error occurs
UTFDataFormatException
- if any invalid UTF-8 data sequence is
detected. Note this occurs only if the source is UTF-8 data
|
Oracle® Database Globalization Development Kit Java API Reference 10g Release 2 (10.2) Part No. B14224-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |