public class Stat extends Object
It's meant to be used to test GCloud'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 gcloud-java-examples) is in a package that lists gcloud-java-nio as a dependency, so it will work directly without having to do any special work.
| Constructor and Description |
|---|
Stat() |
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2016 Google. All rights reserved.