net.noderunner.amazon.s3
Class Bucket

java.lang.Object
  extended by net.noderunner.amazon.s3.Bucket

public class Bucket
extends java.lang.Object

A class representing a single bucket.


Constructor Summary
Bucket(java.lang.String name)
          Constructs a new Bucket.
 
Method Summary
 java.util.Date getCreationDate()
          Returns creationDate.
 java.lang.String getName()
          Returns name.
 boolean specified()
          Returns true if specified; length is non-zero.
 java.lang.String toString()
          Returns the name.
static boolean validateBucketName(java.lang.String bucketName, CallingFormat callingFormat)
          Returns true if the bucket name is valid for the calling format.
 boolean validateName(CallingFormat callingFormat)
          Returns true if the bucket name is valid for the calling format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bucket

public Bucket(java.lang.String name)
Constructs a new Bucket.

Parameters:
name - non-null name
Method Detail

getName

public java.lang.String getName()
Returns name.


specified

public boolean specified()
Returns true if specified; length is non-zero.


getCreationDate

public java.util.Date getCreationDate()
Returns creationDate.


toString

public java.lang.String toString()
Returns the name.

Overrides:
toString in class java.lang.Object

validateBucketName

public static boolean validateBucketName(java.lang.String bucketName,
                                         CallingFormat callingFormat)
Returns true if the bucket name is valid for the calling format.


validateName

public boolean validateName(CallingFormat callingFormat)
Returns true if the bucket name is valid for the calling format.



Copyright © 2010. All Rights Reserved.