|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.groupdocs.viewer.handlers.input.InputDataHandler
com.groupdocs.viewer.handlers.input.LocalInputDataHandler
public class LocalInputDataHandler
Data source instance
Constructor Summary | |
---|---|
LocalInputDataHandler(String filesPath,
String encryptedKey,
String uploadPath)
|
Method Summary | |
---|---|
InputStream |
getFile(String guid)
Get file |
File[] |
getFileList(String directory)
Get files list |
FileType |
getFileType(String guid)
Get file type |
boolean |
getImage(String guid,
String imageSrc,
OutputStream outputStream)
Get external image (for html and some files with images) |
String |
saveFile(InputStream inputStream,
String fileName,
Integer timeToLive)
Save file |
Methods inherited from class com.groupdocs.viewer.handlers.input.InputDataHandler |
---|
getInputDataHandler, getInstance, setInputDataHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalInputDataHandler(String filesPath, String encryptedKey, String uploadPath)
Method Detail |
---|
public File[] getFileList(String directory)
InputDataHandler
getFileList
in class InputDataHandler
directory
- Files location directory
public InputStream getFile(String guid)
InputDataHandler
getFile
in class InputDataHandler
guid
- File id or file path
public boolean getImage(String guid, String imageSrc, OutputStream outputStream)
InputDataHandler
getImage
in class InputDataHandler
guid
- file GUIDimageSrc
- value of src attribute from img tag in html fileoutputStream
- stream to write image data
public FileType getFileType(String guid)
InputDataHandler
getFileType
in class InputDataHandler
guid
- File id or file path
public String saveFile(InputStream inputStream, String fileName, Integer timeToLive)
InputDataHandler
saveFile
in class InputDataHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |