@Deprecated public class PreviewFactory extends Object
Provides a set of methods for creating instances of appropriate preview handlers.
Constructor and Description |
---|
PreviewFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PreviewHandler |
load(InputStream stream)
Deprecated.
Creates an appropriate preview handler from the specified stream.
|
static PreviewHandler |
load(String filePath)
Deprecated.
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(String filePath)
Creates an appropriate preview handler from the specified file.
filePath
- The file containing a document to preview.PreviewHandler
class.Copyright © 2020. All rights reserved.