public class AzureInputDataHandler extends InputDataHandler
Constructor and Description |
---|
AzureInputDataHandler(String accountName,
String accoutnKey) |
Modifier and Type | Method and Description |
---|---|
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
|
getImage
public List<GroupDocsFileDescription> getFileDescriptionList(String directory)
InputDataHandler
getFileDescriptionList
in class InputDataHandler
directory
- files location directorypublic GroupDocsFileDescription getFileDescription(String guid) throws Exception
InputDataHandler
getFileDescription
in class InputDataHandler
guid
- file idException
public InputStream getFile(String guid) throws URISyntaxException, com.microsoft.azure.storage.StorageException
InputDataHandler
getFile
in class InputDataHandler
guid
- file idURISyntaxException
com.microsoft.azure.storage.StorageException
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 keyCopyright © 2015. All rights reserved.