Okio - A modern I/O API for Java

  •        85

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

Tags
Implementation
License
Platform

   




Related Projects

Apache SSHD - Java library to support the SSH protocols on both the client and server side.


Apache SSHD is a 100% pure java library to support the SSH protocols on both the client and server side. This library is based on Apache MINA, a scalable and high performance asynchronous IO library. SSHD does not really aim at being a replacement for the SSH client or SSH server from Unix operating systems, but rather provides support for Java based applications requiring SSH support.

Grizzly - NIO Event Development in Java


The Grizzly NIO framework has been designed to help developers to take advantage of the Java NIO API. Grizzlys goal is to help developers to build scalable and robust servers using NIO as well as offering extended framework components: Web Framework (HTTP/S), WebSocket, Comet, and more!

labs-redis - Java Redis client using the JBoss Netty (N)IO library


Java Redis client using the JBoss Netty (N)IO library

java-nio-socket


A simple set of classes that can be used to run java nio based socket sever and client with SSLEngine support. Contains build in stream support, which allows you to do blocking IO when necessary.

Java NIO Socket Framework


A Java 1.4 based NIO socket framework. This hides the (dirty) details of non-blocking IO from developers, allowing them to EASILY build a highly scalable application, which can handle over 10000 incoming and outgoing sockets using only one thread.



webbit-asyncio - Event based asynchronous Java IO library - built on libeio


Event based asynchronous Java IO library - built on libeio

platform_libcore - Package containing LUNI (java.lang / utils / nio / io / ...)


Package containing LUNI (java.lang / utils / nio / io / ...)

Cotta: A better file system


A light weight file IO library to ease the use of Java File IO related API and enable the testability.

cotta


A light weight file IO library to ease the use of Java File IO related API and enable the testability.

wolfdancer-cotta


A light weight file IO library to ease the use of Java File IO related API and enable the testability.

trackplanner-io - Java library for reading trackplanner files


Java library for reading trackplanner files

BMP-IO - BMP file reader and writer library in Java


BMP file reader and writer library in Java

benchmark-nio-framework - Benchmark on Event-driven Network IO Frameworks


Benchmark on Event-driven Network IO Frameworks

NIO Framework


The NIO Framework sits on top of the Java NIO library and hides most of the complexity of plain NIO. With the NIO Framework one can easily implement secure, high-performance Java network applications.

Apache Commons Imaging - Java Imaging Library


Apache Commons Imaging, previously known as Apache Commons Sanselan, is a library that reads and writes a variety of image formats, including fast parsing of image info (size, color space, ICC profile, etc.) and metadata. It's slower, consequently, but perfectly portable. It's easier to use than ImageIO/JAI/Toolkit (Sun/Java's image support), supports more formats (and supports them more correctly). It also provides easy access to metadata.

win32-nio - A native IO library for Ruby on Windows.


A native IO library for Ruby on Windows.

java-commons-io - Commons IO component for Java servlets


Commons IO component for Java servlets

Java-IO - Release history of Java-IO


Release history of Java-IO