Packages

o

scala.xml.include.sax

EncodingHeuristics

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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EncodingHeuristics
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

  2. object EncodingNames