Utf8Reader class

The Utf8Reader implements StringReader using specified ByteReader.

Implemented types

Constructors

Utf8Reader(ByteReader reader, {bool detectByteOrderMark = true})

Properties

count int
Returns the amount of data read in the specified units. The data unit depends on the reader implementation and how the data is encoded.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasSource bool
Returns true if the source of the input data is available as a String value. If the source of the input data is not available, it returns false.
final
length int
Returns the length of the input data in the specified units. The data unit depends on the reader implementation and how the data is encoded.
no setteroverride
reader ByteReader
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
Returns the source of the input data if available as a String value. If the source of the input data is not available, it throws an exception, the type and meaning of which depends on the reader implementation.
no setteroverride

Methods

indexOf(String string, int start) int
Returns the index of the starting position of the found string, otherwise returns the value -1.
override
matchChar(int char, int offset) bool
Reads the character at the specified offset and returns the result of the comparison with char.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readChar(int index) int
Reads the character at the specified offset and returns that character.
override
startsWith(String string, int index) bool
Check whether the input data starts at the specified position index with the specified value string and and returns true if the check is successful.
override
substring(int start, [int? end]) String
Returns a substring of the data source starting at offset start and ending at offset end.
override
toString() String
A string representation of this object.
inherited

Operators

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