|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.groupdocs.viewer.handlers.input.InputDataHandler
com.groupdocs.viewer.handlers.input.AmazonS3InputDataHandler
public class AmazonS3InputDataHandler
Amazon S3 Input Data Handler
Constructor Summary | |
---|---|
AmazonS3InputDataHandler(String accessKey,
String secretKey,
String bucketName)
Constructor |
|
AmazonS3InputDataHandler(String accessKey,
String secretKey,
String bucketName,
String uploadPath)
Constructor |
Method Summary | |
---|---|
InputStream |
getFile(String guid)
Get file |
GroupDocsFileDescription |
getFileDescription(String guid)
Get file description |
List<GroupDocsFileDescription> |
getFileDescriptionList(String directory)
Get file description list |
String |
saveFile(InputStream inputStream,
String fileName,
Integer timeToLive,
String encryptedKey)
Save file |
Methods inherited from class com.groupdocs.viewer.handlers.input.InputDataHandler |
---|
getImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AmazonS3InputDataHandler(String accessKey, String secretKey, String bucketName)
accessKey
- AWS access keysecretKey
- AWS secret keybucketName
- bucket namepublic AmazonS3InputDataHandler(String accessKey, String secretKey, String bucketName, String uploadPath)
accessKey
- AWS access keysecretKey
- AWS secret keybucketName
- bucket nameuploadPath
- upload pathMethod Detail |
---|
public List<GroupDocsFileDescription> getFileDescriptionList(String directory)
InputDataHandler
getFileDescriptionList
in class InputDataHandler
directory
- files location directory
public GroupDocsFileDescription getFileDescription(String guid) throws Exception
InputDataHandler
getFileDescription
in class InputDataHandler
guid
- file id
Exception
public InputStream getFile(String guid)
InputDataHandler
getFile
in class InputDataHandler
guid
- file id
public String saveFile(InputStream inputStream, String fileName, Integer timeToLive, String encryptedKey)
InputDataHandler
saveFile
in class InputDataHandler
inputStream
- Input stream of object to be saved/uploadedfileName
- file nametimeToLive
- TTL, 0 - unlimitedencryptedKey
- encryption key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |