| Start |
|---|
| Download / Implement Download the latest JAR or grab via Maven: or Gradle: |
| PNG decoder Decoding the chunks of a PNG file demonstrates Okio in practice. |
| ByteStrings and Buffers ByteStrings and Buffers Okio is built around two types that pack a lot of capability into a straightforward API: ByteString is an immutable sequence of bytes. For character data, String is fundamental. ByteString is String's long-lost brother, making it easy to treat binary data as a value. This class is ergonomic: it knows how to encode and decode itself as hex, base64, and UTF-8. Buffer is a mutable sequence of bytes. Like ArrayList, you don't need to size your buffer in advance. You read and write buffers as a queue: write data to the end and read it from the front. There's no obligation to manage positions, limits, or capacities. Internally,
|
Read Article
https://develop.horje.com/learn/1434/reference