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()
Determines if this is an invalid
BucketPath . |
String |
getBucket() |
String |
getObject() |
String |
getPath() |
public BucketPath(String uri) throws 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.IllegalArgumentException
public boolean error()
BucketPath
.public String getPath()
public String getBucket()
public String getObject()
Copyright © 2016–2019. All rights reserved.