use of com.enonic.xp.repo.impl.dump.RepoDumpException in project xp by enonic.
the class AbstractDumpWriter method storeTarEntry.
public void storeTarEntry(final byte[] serializedEntry, final String entryName) {
try {
final TarArchiveEntry entry = new TarArchiveEntry(entryName);
entry.setSize(serializedEntry.length);
tarOutputStream.putArchiveEntry(entry);
tarOutputStream.write(serializedEntry);
tarOutputStream.closeArchiveEntry();
} catch (IOException e) {
throw new RepoDumpException("Could not write dump-entry", e);
}
}
Aggregations