# Package com.google.cloud.examples.nio (0.133.0)

0.133.0 (latest) 0.131.0 0.128.13 0.127.38 0.126.19 0.125.0 0.124.21 0.123.28

|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/google-cloud-java/google-cloud-nio/src/main/java/com/google/cloud/examples/nio) |

## Classes

| Class | Description |
|---|---|
| [com.google.cloud.examples.nio.CountBytes](https://cloud.google.com/java/docs/reference/google-cloud-nio/latest/com.google.cloud.examples.nio.CountBytes) | CountBytes will read through the whole file given as input. This example shows how to read a file size using NIO. File.size returns the size of the file as saved in Storage metadata. This class also shows how to read all of the file's contents using |
| [com.google.cloud.examples.nio.ParallelCountBytes](https://cloud.google.com/java/docs/reference/google-cloud-nio/latest/com.google.cloud.examples.nio.ParallelCountBytes) | ParallelCountBytes will read through the whole file given as input. This example shows how to go through all the contents of a file, in order, using multithreaded NIO reads. It prints a MD5 hash and reports how long it took. |
| [com.google.cloud.examples.nio.Stat](https://cloud.google.com/java/docs/reference/google-cloud-nio/latest/com.google.cloud.examples.nio.Stat) | Stat is a super-simple program that just displays the size of the file passed as argument. It's meant to be used to test Google Cloud's integration with Java NIO. |