okio icon indicating copy to clipboard operation
okio copied to clipboard

A modern I/O library for Android, Java, and Kotlin Multiplatform.

Results 148 okio issues
Sort by recently updated
recently updated
newest added

The first one may be useful with hashing to put byte strings in partitioning buckets for scaling. For example, to divide a dataset into 32 partitions, hash the key then...

Introduces TimeoutException which a caller can catch if it just wants to just deal with timeout and deadline reached, but not interrupts.

As described here #133 and #1654, this is resolved, in our app utilizing okhttp:5.0.0-alpha.8 and okio:3.1.0 we are getting crashes on some devices, logs below Reproducible case is not very...

We are working on the upgrade of `okio` and decided to use the `okio-bom`. As we are using Maven, we also had to switch to `okio-jvm` (see related issue https://github.com/square/okio/issues/1067)....

From this PR https://github.com/square/okhttp/pull/7326 which is just an experiment It isn't clear how to handle these sorts of conversions ``` import io.ktor.client.statement.HttpResponse import io.ktor.client.statement.bodyAsChannel import io.ktor.utils.io.core.readBytes import okhttp3.RequestBody import okhttp3.ResponseBody...

`String.toPath()` replaces consecutive back slash characters with `Path.DIRECTORY_SEPARATOR` (a single forward slash on android). This can cause issues if attempting to read a file with back slashes in its name...

As described here: https://github.com/square/wire/discussions/2209 Wire is crashing attempting to load a resource it shouldn't be loading. ``` java.io.FileNotFoundException: /app.jar!/BOOT-INF/lib/my-service-sdk-1.2.0.jar (No such file or directory) at java.base/java.io.RandomAccessFile.open0(Native Method) ~[na:na] at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:344)...

Basically, I have a piece of code that grabs a file, splits it into chunks and encrypts each one individually before sending everything over the network. For creating the encryption...

We have this code: ```kotlin fileSystem.read(path) { try { moshi.adapter(clazz).fromJson(this) } catch (e: JsonDataException) { // If the file is malformed, treat it the same as if we didn't have...