Τετάρτη 5 Ιανουαρίου 2011

Amazon S3 sample java file

The SampleS3.java file is a sample java file for accessing the following S3 operations

  • createBucket
  • putObject
  • getObject
  • listObjects
  • deleteObject
  • deleteBucket
SampleS3.java can be viewed here


https://docs.google.com/document/pub?id=1D9nPJKkYsiykVsvOTGGHJTXa2a-KmXCOYCa0kRUxxIc



copy and paste the code into a file named SampleS3.java under a package named amazonpack.

In order to run the SampleS3 java class you should include in your classpath the following jars

aws-java-sdk-1.1.1.jar
aws-java-sdk-1.1.1-javadoc.jar
aws-java-sdk-1.1.1-sources.jar
commons-codec-1.3.jar
commons-discovery-0.2.jar
commons-httpclient-3.0.1.jar
commons-logging.jar
commons-logging-1.1.1.jar

jackson-core-asl-1.4.3.jar
jaxrpc.jar

These can be found on AWS SDK for Java that can be downloaded from here

http://aws.amazon.com/eclipse/

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου