use of org.haiku.pkg.output.PkgWriter in project haikudepotserver by haiku.
the class PkgDumpTool method run.
public void run() {
new CmdLineParser(this);
try (HpkrFileExtractor hpkrFileExtractor = new HpkrFileExtractor(hpkrFile);
OutputStreamWriter streamWriter = new OutputStreamWriter(System.out);
PkgWriter pkgWriter = new PkgWriter(streamWriter)) {
pkgWriter.write(new PkgIterator(hpkrFileExtractor.getPackageAttributesIterator()));
pkgWriter.flush();
} catch (Throwable th) {
LOGGER.error("unable to dump packages", th);
}
}
Aggregations