com.groupdocs.viewer.handlers.input
Class AzureInputDataHandler
java.lang.Object
com.groupdocs.viewer.handlers.input.InputDataHandler
com.groupdocs.viewer.handlers.input.AzureInputDataHandler
public class AzureInputDataHandler
- extends InputDataHandler
- Author:
- Alex Bobkov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AzureInputDataHandler
public AzureInputDataHandler(String accountName,
String accoutnKey)
getFileDescriptionList
public List<GroupDocsFileDescription> getFileDescriptionList(String directory)
- Description copied from class:
InputDataHandler
- Get file description list
- Specified by:
getFileDescriptionList
in class InputDataHandler
- Parameters:
directory
- files location directory
- Returns:
- list of file descriptions
getFileDescription
public GroupDocsFileDescription getFileDescription(String guid)
throws Exception
- Description copied from class:
InputDataHandler
- Get file description
- Specified by:
getFileDescription
in class InputDataHandler
- Parameters:
guid
- file id
- Returns:
-
- Throws:
Exception
getFile
public InputStream getFile(String guid)
throws URISyntaxException,
com.microsoft.azure.storage.StorageException
- Description copied from class:
InputDataHandler
- Get file
- Specified by:
getFile
in class InputDataHandler
- Parameters:
guid
- file id
- Returns:
- InputStream of the file
- Throws:
URISyntaxException
com.microsoft.azure.storage.StorageException
saveFile
public String saveFile(InputStream inputStream,
String fileName,
Integer timeToLive,
String encryptedKey)
- Description copied from class:
InputDataHandler
- Save file
- Specified by:
saveFile
in class InputDataHandler
- Parameters:
inputStream
- Input stream of object to be saved/uploadedfileName
- file nametimeToLive
- TTL, 0 - unlimitedencryptedKey
- encryption key
- Returns:
- token Id
Copyright © 2015. All rights reserved.