public class BucketPath extends Object implements Serializable
Constructor and Description |
---|
BucketPath(String uri)
Prepares a new BucketPath.
|
BucketPath(String bucket,
String object)
Initializes BucketPath directly, with no parsing or substitutions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
error() |
String |
getBucket()
The Bucket portion of the URI
|
String |
getObject()
The object portion of the URI
|
String |
getPath()
Regenerate the path (without gs:// prefix)
|
public BucketPath(String uri) throws IOException, InterruptedException, IllegalArgumentException
uri
- path to the bucket object, of the form
"gs://bucket_name/path/to/object". May contain other characters (i.e., *),
no verification is done in this class.IOException
InterruptedException
IllegalArgumentException
Copyright © 2016–2017. All rights reserved.