public abstract class InputDataHandler extends Object
Constructor and Description |
---|
InputDataHandler() |
Modifier and Type | Method and Description |
---|---|
abstract InputStream |
getFile(String guid)
Get file
|
abstract GroupDocsFileDescription |
getFileDescription(String guid)
Get file description
|
abstract List<GroupDocsFileDescription> |
getFileDescriptionList(String directory)
Get file description list
|
boolean |
getImage(String guid,
String imageSrc,
OutputStream outputStream)
Get external image (for html and some files with images)
|
abstract String |
saveFile(InputStream inputStream,
String fileName,
Integer timeToLive,
String encryptedKey)
Save file
|
public abstract List<GroupDocsFileDescription> getFileDescriptionList(String directory) throws Exception
directory
- files location directoryException
public abstract GroupDocsFileDescription getFileDescription(String guid) throws Exception
guid
- file idException
public abstract InputStream getFile(String guid) throws Exception
guid
- file idException
public abstract String saveFile(InputStream inputStream, String fileName, Integer timeToLive, String encryptedKey) throws Exception
inputStream
- Input stream of object to be saved/uploadedfileName
- file nametimeToLive
- TTL, 0 - unlimitedencryptedKey
- encryption keyException
public boolean getImage(String guid, String imageSrc, OutputStream outputStream)
guid
- file GUIDimageSrc
- value of src attribute from img tag in html fileoutputStream
- stream to write image dataCopyright © 2015. All rights reserved.