Package-level declarations
Utilities for Modified UTF-8 I/O with okio
's Source
and Sink
classes. Their more frequently used subclasses, BufferedSource
, BufferedSink
and Buffer
, are also supported.
Types
A Mutf8Sink that writes its data to a Sink from the okio library.
A Mutf8Source that reads its data from a Source from the okio library.
Functions
Creates a OkioMutf8Source around the receiver, reads the length & contents of a Modified UTF-8 string, and then returns the contents as a CharArray.
Creates a OkioMutf8Source around the receiver, reads the length & contents of a Modified UTF-8 string, and then returns the contents as a String.
Creates a OkioMutf8Source around the receiver, reads the length & contents of a Modified UTF-8 string, and then writes those contents to the supplied destination, such as a StringBuilder.
Creates a OkioMutf8Sink around the receiver, writes the mutf8Length of the characters, and then writes the characters themselves.
Creates a OkioMutf8Sink around the receiver, writes the mutf8Length of the characters, and then writes the characters themselves.