Class Stat (0.127.12)

public class 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.

You can either use the '--check' argument to see whether Google Cloud Storage is enabled, or you can directly pass in a Google Cloud Storage file name to use. In that case you have to be logged in (using e.g. the gcloud auth command).

See the README for compilation instructions. Run this code with

target/appassembler/bin/Stat --help | --check | --list | 

In short, this version (in google-cloud-examples) is in a package that lists google-cloud-nio as a dependency, so it will work directly without having to do any special work.

Inheritance

java.lang.Object > Stat

Static Methods

main(String[] args)

public static void main(String[] args)

See the class documentation.

Parameter
NameDescription
argsString[]
Exceptions
TypeDescription
IOException

Constructors

Stat()

public Stat()