|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tomp.xml.include.EncodingHeuristics
EncodingHeuristics
reads from a stream (which should be
buffered) and attempts to guess what the encoding of the text in the stream
is. Byte order marks are stripped from the stream. If it fails to determine
the type of the encoding, it returns the default UTF-8.
Method Summary | |
static java.lang.String |
readEncodingFromStream(java.io.InputStream in)
This utility method ????. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String readEncodingFromStream(java.io.InputStream in) throws java.io.IOException
This utility method ????.
in
- InputStream
to read from.
java.io.IOException
- if the stream cannot be reset back to where it was
when the method was invoked.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |