com.groupdocs.viewer.handlers.input
Class AzureInputDataHandler

java.lang.Object
  extended by com.groupdocs.viewer.handlers.input.InputDataHandler
      extended by com.groupdocs.viewer.handlers.input.AzureInputDataHandler

public class AzureInputDataHandler
extends InputDataHandler

Author:
Alex Bobkov

Constructor Summary
AzureInputDataHandler(String accountName, String accoutnKey)
           
 
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

AzureInputDataHandler

public AzureInputDataHandler(String accountName,
                             String accoutnKey)
Method Detail

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/uploaded
fileName - file name
timeToLive - TTL, 0 - unlimited
encryptedKey - encryption key
Returns:
token Id


Copyright © 2015. All rights reserved.