Package org.digidoc4j
Class ContainerOpener
java.lang.Object
org.digidoc4j.ContainerOpener
Helper class for opening containers. The proper way of opening containers would be using
ContainerBuilder,
for example using ContainerBuilder.fromExistingFile(String) and ContainerBuilder.fromStream(InputStream).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Containeropen(InputStream stream, boolean actAsBigFilesSupportEnabled) Open container from a stream.static Containeropen(InputStream stream, Configuration configuration) Open container from a stream.static ContainerOpen container from a file.static Containeropen(String path, Configuration configuration) Open container from a file.
-
Constructor Details
-
ContainerOpener
public ContainerOpener()
-
-
Method Details
-
open
Open container from a file. UseContainerBuilder.fromExistingFile(String)instead.- Parameters:
path- file name and path.configuration- configuration settings- Returns:
- container new container of the specified format
- Throws:
DigiDoc4JException- when the file is not found or empty- See Also:
-
open
Open container from a file. UseContainerBuilder.fromExistingFile(String)instead.- Parameters:
path- file name and path.- Returns:
- container
- Throws:
DigiDoc4JException- when the file is not found or empty- See Also:
-
open
Open container from a stream. UseContainerBuilder.fromStream(InputStream)instead.- Parameters:
stream- input streamactAsBigFilesSupportEnabled- acts as configuration parameter- Returns:
- container
- See Also:
-
open
Open container from a stream. UseContainerBuilder.fromStream(InputStream)instead.- Parameters:
stream- stream of a container to open.configuration- configuration settings.- Returns:
- opened container.
- See Also:
-