public class PreviewFactory extends Object
Provides a set of methods for creating instances of appropriate preview handlers.
Constructor and Description |
---|
PreviewFactory() |
Modifier and Type | Method and Description |
---|---|
static PreviewHandler |
load(InputStream stream)
Creates an appropriate preview handler from the specified stream.
|
static PreviewHandler |
load(InputStream stream,
LoadOptions loadOptions)
Creates an appropriate preview handler from the specified stream.
|
static PreviewHandler |
load(String filePath)
Creates an appropriate preview handler from the specified file.
|
static PreviewHandler |
load(String filePath,
LoadOptions loadOptions)
Creates an appropriate preview handler from the specified file.
|
public static PreviewHandler load(InputStream stream)
Creates an appropriate preview handler from the specified stream.
stream
- The stream containing a document to preview.PreviewHandler
class.public static PreviewHandler load(InputStream stream, LoadOptions loadOptions)
Creates an appropriate preview handler from the specified stream.
stream
- The stream containing a document to preview.loadOptions
- The options of loading the file.PreviewHandler
class.public static PreviewHandler load(String filePath)
Creates an appropriate preview handler from the specified file.
filePath
- The file containing a document to preview.PreviewHandler
class.public static PreviewHandler load(String filePath, LoadOptions loadOptions)
Creates an appropriate preview handler from the specified file.
filePath
- The file containing a document to preview.loadOptions
- The options of loading the file.PreviewHandler
class.