org.exoplatform.services.jcr.aws.storage.value.s3
Class S3File

java.lang.Object
  extended by java.io.File
      extended by org.exoplatform.services.jcr.aws.storage.value.s3.S3File
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.io.File>

public class S3File
extends java.io.File

An abstract representation of file on Amazon S3.

Version:
$Id: S3File.java 21606 2008-10-20 10:44:09Z pnedonosko $
Author:
Andrey Parfonov
See Also:
Serialized Form

Field Summary
protected  java.lang.String awsAccessKey
          AWS Access Key.
protected  java.lang.String awsSecretAccessKey
          AWS Secret Access Key.
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
S3File(java.lang.String bucket, java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey, java.lang.String key)
          S3File constructor.
 
Method Summary
 boolean delete()
          
 boolean exists()
          
 boolean isDirectory()
          
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, deleteOnExit, equals, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

awsAccessKey

protected final java.lang.String awsAccessKey
AWS Access Key.


awsSecretAccessKey

protected final java.lang.String awsSecretAccessKey
AWS Secret Access Key.

Constructor Detail

S3File

public S3File(java.lang.String bucket,
              java.lang.String awsAccessKey,
              java.lang.String awsSecretAccessKey,
              java.lang.String key)
S3File constructor.

Parameters:
bucket - bucket name
awsAccessKey - access key
awsSecretAccessKey - secret key
key - object key
Method Detail

delete

public boolean delete()

Overrides:
delete in class java.io.File

isDirectory

public boolean isDirectory()

Overrides:
isDirectory in class java.io.File

exists

public boolean exists()

Overrides:
exists in class java.io.File


Copyright © 2012 eXo Platform SAS. All Rights Reserved.