public class CmsEncryptedAsicReader extends Object implements AsicReader
| Constructor and Description |
|---|
CmsEncryptedAsicReader(AsicReader asicReader,
PrivateKey privateKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying zip input stream.
|
no.difi.xsd.asic.model._1.AsicManifest |
getAsicManifest() |
String |
getNextFile()
Provides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.
|
InputStream |
inputStream()
Returns InputStream to read the content.
|
void |
writeFile(File file)
Writes the contents of the current entry into a file
|
void |
writeFile(OutputStream outputStream)
Writes contents of current archive entry to the supplied output stream.
|
void |
writeFile(Path path)
Writes contents of current archive entry into a file.
|
public CmsEncryptedAsicReader(AsicReader asicReader, PrivateKey privateKey)
public String getNextFile() throws IOException
AsicReadergetNextFile in interface AsicReaderIOExceptionpublic void writeFile(File file) throws IOException
AsicReaderwriteFile in interface AsicReaderfile - into which the contents should be written.IOExceptionpublic void writeFile(Path path) throws IOException
AsicReaderwriteFile in interface AsicReaderpath - into which the contents of current entry should be written.IOExceptionpublic void writeFile(OutputStream outputStream) throws IOException
AsicReaderwriteFile in interface AsicReaderoutputStream - into which data from current entry should be written.IOExceptionpublic InputStream inputStream() throws IOException
AsicReaderinputStream in interface AsicReaderIOExceptionpublic void close()
throws IOException
AsicReaderclose in interface AsicReaderIOExceptionpublic no.difi.xsd.asic.model._1.AsicManifest getAsicManifest()
getAsicManifest in interface AsicReaderCopyright © 2016 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.