Package no.difi.asic
Class AsicWriterFactory
java.lang.Object
no.difi.asic.AsicWriterFactory
Creates AsicWriter instances according to the supplied parameters.
-
Method Summary
Modifier and TypeMethodDescriptionnewContainer(File file) Creates a new AsicWriter, which will create an ASiC archive in the supplied file.newContainer(File outputDir, String filename) Factory method creating a new AsicWriter, which will create an ASiC archive in the supplied directory with the supplied file namenewContainer(OutputStream outputStream) Creates a new AsicWriter, which will write the container contents to the supplied output stream.newContainer(Path path) static AsicWriterFactoryCreates an AsicWriterFactory, which utilises the default signature method, which is currently CAdES.static AsicWriterFactorynewFactory(SignatureMethod signatureMethod) Creates an AsicWriterFactory using the supplied signature method.
-
Method Details
-
newFactory
Creates an AsicWriterFactory, which utilises the default signature method, which is currently CAdES.- Returns:
- instantiated AsicWriterFactory
-
newFactory
Creates an AsicWriterFactory using the supplied signature method.- Parameters:
signatureMethod- the signature method to be used.- Returns:
- instantiated AsicWriterFactory
- See Also:
-
newContainer
Factory method creating a new AsicWriter, which will create an ASiC archive in the supplied directory with the supplied file name- Parameters:
outputDir- the directory in which the archive will be created.filename- the name of the archive.- Returns:
- an instance of AsicWriter
- Throws:
IOException
-
newContainer
Creates a new AsicWriter, which will create an ASiC archive in the supplied file.- Parameters:
file- the file reference to the archive.- Returns:
- an instance of AsicWriter
- Throws:
IOException
-
newContainer
- Throws:
IOException- See Also:
-
newContainer
Creates a new AsicWriter, which will write the container contents to the supplied output stream.- Parameters:
outputStream- stream into which the archive will be written.- Returns:
- an instance of AsicWriter
- Throws:
IOException
-