
no.difi.asic.AsicReaderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-asic Show documentation
Show all versions of commons-asic Show documentation
Generic implementation of ASiC-E archives in accordance with ETSI 102 918 v1.3.1.
The newest version!
package no.difi.asic;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
class AsicReaderImpl extends AbstractAsicReader implements AsicReader {
AsicReaderImpl(MessageDigestAlgorithm messageDigestAlgorithm, InputStream inputStream) throws IOException {
super(messageDigestAlgorithm, inputStream);
}
/**
* {@inheritDoc}
*/
@Override
public String getNextFile() throws IOException {
return super.getNextFile();
}
/**
* {@inheritDoc}
*/
@Override
public void writeFile(File file) throws IOException {
writeFile(file.toPath());
}
/**
* {@inheritDoc}
*/
@Override
public void writeFile(Path path) throws IOException {
OutputStream outputStream = Files.newOutputStream(path);
writeFile(outputStream);
outputStream.close();
}
/**
* {@inheritDoc}
*/
@Override
public void writeFile(OutputStream outputStream) throws IOException {
super.writeFile(outputStream);
}
@Override
public InputStream inputStream() {
return super.inputStream();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy