|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.compare.StreamDecoder
public final class StreamDecoder
This class handles the vagarities of decoding .xml, .html and text files using the correct encoding. A lot of this is duplicate code (from XMLNode and HTMLNode), but there's no obvious way to reuse that code :(
Constructor Summary | |
---|---|
StreamDecoder()
|
Method Summary | |
---|---|
static void |
deregisterDecoderHelper(StreamDecoderHelper decoderHelper)
Deegister a decoder helper to assist with custom default encodings. |
static java.lang.String |
getDefaultEncoding(java.net.URL url)
Get the default encoding which will be used for the given URL, according to registered decoder helpers. |
static java.io.Reader |
getReader(java.lang.String suffix,
java.io.InputStream stream)
Deprecated. replaced by getReader(String,InputStream,String) and
getReader(String,URL) . |
static java.io.Reader |
getReader(java.lang.String suffix,
java.io.InputStream stream,
java.lang.String defaultEncoding)
Get a reader for the specified URL. |
static java.io.Reader |
getReader(java.lang.String suffix,
java.net.URL url)
Get a reader for the specified URL and file suffix. |
static java.io.Reader |
getReader(java.net.URL url)
Get a reader for the specified URL. |
static Stream |
getStream(java.lang.String suffix,
java.io.InputStream inputStream,
java.lang.String defaultEncoding)
Get a reader for the specified URL. |
static void |
registerDecoderHelper(StreamDecoderHelper decoderHelper)
Register a decoder helper to assist with custom default encodings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamDecoder()
Method Detail |
---|
public static final void registerDecoderHelper(StreamDecoderHelper decoderHelper)
decoderHelper
- the decoder helper to register.public static final void deregisterDecoderHelper(StreamDecoderHelper decoderHelper)
decoderHelper
- the decoder helper to deregister.public static final java.lang.String getDefaultEncoding(java.net.URL url)
IdeUtil.getIdeEncoding()
is returned.
url
- the URL.
public static java.io.Reader getReader(java.net.URL url) throws java.io.IOException
java.io.IOException
public static java.io.Reader getReader(java.lang.String suffix, java.net.URL url) throws java.io.IOException
java.io.IOException
public static java.io.Reader getReader(java.lang.String suffix, java.io.InputStream stream) throws java.io.IOException
getReader(String,InputStream,String)
and
getReader(String,URL)
.
java.io.IOException
public static java.io.Reader getReader(java.lang.String suffix, java.io.InputStream stream, java.lang.String defaultEncoding) throws java.io.IOException
java.io.IOException
public static Stream getStream(java.lang.String suffix, java.io.InputStream inputStream, java.lang.String defaultEncoding) throws java.io.IOException
java.io.IOException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |