public interface IContainerFactory
Provides the functionality for creating containers.
Modifier and Type | Method and Description |
---|---|
Container |
createContainer(InputStream stream)
Creates a container.
|
Container |
createContainer(InputStream stream,
LoadOptions loadOptions)
Creates a container.
|
Container |
createContainer(String fileName)
Creates a container.
|
Container |
createContainer(String fileName,
LoadOptions loadOptions)
Creates a container.
|
Container createContainer(String fileName) throws FileNotFoundException
Creates a container.
fileName
- The name of the file.The media type will be detected by the extension of the file or by the content of the file.
FileNotFoundException
Container createContainer(String fileName, LoadOptions loadOptions) throws FileNotFoundException
Creates a container.
fileName
- The name of the file.loadOptions
- The options of loading the file.If loadOptions.MediaType is null, media type will be detected by the extension of the file or by the content of the file.
FileNotFoundException
Container createContainer(InputStream stream)
Creates a container.
stream
- The stream of the document.The media type will be detected by the content of the file.
Container createContainer(InputStream stream, LoadOptions loadOptions)
Creates a container.
stream
- The stream of the document.loadOptions
- The options of loading the file.Copyright © 2018. All rights reserved.