XmlByteStreamDecoder class

A StreamTransformer that decodes a byte stream to a string stream, detecting and stripping Byte Order Marks (BOM) and sniffing XML encoding.

Inheritance

Constructors

XmlByteStreamDecoder({Encoding? defaultEncoding})
Creates a byte stream decoder with an optional defaultEncoding fallback (defaults to UTF-8 when no BOM or XML encoding declaration is found).
const

Properties

defaultEncoding → Encoding?
Fallback encoding when no BOM or declaration encoding is found.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Stream<List<int>> stream) → Stream<String>
Transforms the provided stream.
override
cast<RS, RT>() → StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited