W3cubDocs

/Dart 2

JsonUtf8Encoder class

Encoder that encodes a single object as a UTF-8 encoded JSON string.

This encoder works equivalently to first converting the object to a JSON string, and then UTF-8 encoding the string, but without creating an intermediate string.

Inheritance

Constructors

JsonUtf8Encoder([String indent, dynamic toEncodable(dynamic object), int bufferSize = _defaultBufferSize ])
Create converter. [...]

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

bind(Stream<Object> stream) → Stream<List<int>>
override
Transforms the provided stream. [...]
convert(Object object) → List<int>
override
Convert object into UTF-8 encoded JSON.
startChunkedConversion(Sink<List<int>> sink) → ChunkedConversionSink<Object>
override
Start a chunked conversion. [...]
cast<RS, RT>() → Converter<RS, RT>
inherited
Provides a Converter<RS, RT> view of this stream transformer. [...]
fuse<TT>(Converter<List<int>, TT> other) → Converter<Object, TT>
inherited
Fuses this with other. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Constants

DEFAULT_BUFFER_SIZE → const int
_defaultBufferSize

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/JsonUtf8Encoder-class.html