Package com.google.cloud.examples.nio (0.127.18)

GitHub Repository

Classes

Class Description
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 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 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.