Search

Suggested keywords:
  • Java
  • Docker
  • Git
  • React
  • NextJs
  • Spring boot
  • Laravel

Okio - A modern I/O API for Java

  • Share this:
Okio is a library that complements java.io and java.nio to make it much easier to access, store, and process your data.

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.

http://square.github.io/okio/1.x/okio
https://github.com/square/okio
License:
Tech: