Package no.difi.asic.extras
Class CmsEncryptedAsicReader
java.lang.Object
no.difi.asic.extras.CmsEncryptedAsicReader
- All Implemented Interfaces:
Closeable,AutoCloseable,AsicReader
Wrapper to seamlessly decode encoded files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()no.difi.commons.asic.jaxb.asic.AsicManifestProvides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.Returns InputStream to read the content.voidWrites the contents of the current entry into a filevoidwriteFile(OutputStream outputStream) Writes contents of current archive entry to the supplied output stream.voidWrites contents of current archive entry into a file.
-
Field Details
-
BC
- See Also:
-
-
Constructor Details
-
CmsEncryptedAsicReader
-
-
Method Details
-
getNextFile
Description copied from interface:AsicReaderProvides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.- Specified by:
getNextFilein interfaceAsicReader- Returns:
- name of next entry in archive.
- Throws:
IOException
-
writeFile
Description copied from interface:AsicReaderWrites the contents of the current entry into a file- Specified by:
writeFilein interfaceAsicReader- Parameters:
file- into which the contents should be written.- Throws:
IOException
-
writeFile
Description copied from interface:AsicReaderWrites contents of current archive entry into a file.- Specified by:
writeFilein interfaceAsicReader- Parameters:
path- into which the contents of current entry should be written.- Throws:
IOException
-
writeFile
Description copied from interface:AsicReaderWrites contents of current archive entry to the supplied output stream.- Specified by:
writeFilein interfaceAsicReader- Parameters:
outputStream- into which data from current entry should be written.- Throws:
IOException
-
inputStream
Description copied from interface:AsicReaderReturns InputStream to read the content.- Specified by:
inputStreamin interfaceAsicReader- Returns:
- Content
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getAsicManifest
public no.difi.commons.asic.jaxb.asic.AsicManifest getAsicManifest()- Specified by:
getAsicManifestin interfaceAsicReader
-