Package com.google.cloud.examples.nio
Class Stat
- java.lang.Object
-
- com.google.cloud.examples.nio.Stat
-
public class Stat extends Object
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 | <file>
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.
-
-
Constructor Summary
Constructors Constructor Description Stat()
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
See the class documentation.- Throws:
IOException
-
-