object EncodingHeuristics
EncodingHeuristics
reads from a stream
(which should be buffered) and attempts to guess
what the encoding of the text in the stream is.
If it fails to determine the type of the encoding,
it returns the default UTF-8.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EncodingHeuristics
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
readEncodingFromStream(in: InputStream): String
This utility method attempts to determine the XML character encoding by examining the input stream, as specified at w3.
This utility method attempts to determine the XML character encoding by examining the input stream, as specified at w3.
- in
InputStream
to read from.- returns
the name of the encoding.
- Exceptions thrown
IOException
if the stream cannot be reset
- object EncodingNames