@Immutable @Loggable(value=1) public final class FkBucket extends Object implements Bucket
Bucket.Prefixed
Constructor and Description |
---|
FkBucket()
Ctor.
|
FkBucket(File file,
String name)
Ctor.
|
FkBucket(Path file,
String name)
Ctor.
|
FkBucket(String name)
Ctor.
|
FkBucket(String file,
String name)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Bucket bucket) |
boolean |
exists()
Checks if the bucket exists.
|
Iterable<String> |
list(String pfx)
List object names with a given prefix.
|
String |
name()
Get bucket name.
|
Ocket |
ocket(String key)
Get object.
|
Region |
region()
Get region we're in.
|
void |
remove(String key)
Delete object from bucket.
|
public FkBucket() throws IOException
IOException
- If failspublic FkBucket(String name) throws IOException
name
- Name of the bucketIOException
- If failspublic FkBucket(File file, String name)
file
- Directory to keep files inname
- Name of the bucketpublic FkBucket(Path file, String name)
file
- Directory to keep files inname
- Name of the bucketpublic boolean exists()
Bucket
public void remove(String key)
Bucket
public Iterable<String> list(String pfx)
Bucket
public int compareTo(Bucket bucket)
compareTo
in interface Comparable<Bucket>
Copyright © 2012–2017 jcabi.com. All rights reserved.