use of org.haiku.pkg.output.AttributeWriter in project haikudepotserver by haiku.
the class AttributeDumpTool method runHpkr.
private void runHpkr() throws IOException {
try (HpkrFileExtractor hpkrFileExtractor = new HpkrFileExtractor(hpkFile);
OutputStreamWriter streamWriter = new OutputStreamWriter(System.out);
AttributeWriter attributeWriter = new AttributeWriter(streamWriter)) {
attributeWriter.write(hpkrFileExtractor.getPackageAttributesIterator());
attributeWriter.flush();
}
}
use of org.haiku.pkg.output.AttributeWriter in project haikudepotserver by haiku.
the class AttributeDumpTool method runHpkg.
private void runHpkg() throws IOException {
try (HpkgFileExtractor hpkgFileExtractor = new HpkgFileExtractor(hpkFile);
OutputStreamWriter streamWriter = new OutputStreamWriter(System.out);
AttributeWriter attributeWriter = new AttributeWriter(streamWriter)) {
writeHeader(streamWriter, "package attributes");
attributeWriter.write(hpkgFileExtractor.getPackageAttributesIterator());
writeHeader(streamWriter, "toc");
attributeWriter.write(hpkgFileExtractor.getTocIterator());
attributeWriter.flush();
}
}
Aggregations