|
||||||||||
| 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 File[] |
getFileList(String directory)
Get files list |
abstract 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) |
static InputDataHandler |
getInputDataHandler()
Get InputDataHandler |
static InputDataHandler |
getInstance()
Get InputDataHandler instance |
abstract String |
saveFile(InputStream inputStream,
String fileName,
Integer timeToLive)
Save file |
static void |
setInputDataHandler(InputDataHandler inputDataHandler)
Set InputDataHandler instance |
| 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 static InputDataHandler getInstance()
public static void setInputDataHandler(InputDataHandler inputDataHandler)
inputDataHandler - InputDataHandler instancepublic static InputDataHandler getInputDataHandler()
public abstract File[] getFileList(String directory)
directory - Files location directory
public abstract InputStream getFile(String guid)
guid - File id or file path
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
public abstract FileType getFileType(String guid)
guid - File id or file path
public abstract String saveFile(InputStream inputStream,
String fileName,
Integer timeToLive)
inputStream - fileName - timeToLive -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||