|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.groupdocs.viewer.handlers.input.InputDataHandler
public abstract class InputDataHandler
Data source interface
Used to define other data sources such as from databases or virtual devices
Constructor Summary | |
---|---|
InputDataHandler()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputDataHandler()
Method Detail |
---|
public abstract List<GroupDocsFileDescription> getFileDescriptionList(String directory) throws Exception
directory
- files location directory
Exception
public abstract GroupDocsFileDescription getFileDescription(String guid) throws Exception
guid
- file id
Exception
public abstract InputStream getFile(String guid) throws Exception
guid
- file id
Exception
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 key
Exception
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 data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |