Package no.difi.asic
Interface AsicReader
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
CmsEncryptedAsicReader
-
Method Summary
Modifier and TypeMethodDescriptionno.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.
-
Method Details
-
getNextFile
Provides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.- Returns:
- name of next entry in archive.
- Throws:
IOException
-
writeFile
Writes the contents of the current entry into a file- Parameters:
file- into which the contents should be written.- Throws:
IOException
-
writeFile
Writes contents of current archive entry into a file.- Parameters:
path- into which the contents of current entry should be written.- Throws:
IOException
-
writeFile
Writes contents of current archive entry to the supplied output stream.- Parameters:
outputStream- into which data from current entry should be written.- Throws:
IOException
-
inputStream
Returns InputStream to read the content.- Returns:
- Content
- Throws:
IOException
-
getAsicManifest
no.difi.commons.asic.jaxb.asic.AsicManifest getAsicManifest()
-