public void compress(IsoFile source, IsoFileCompressed target)
throws IOException {
IsoInputStream inputStream = context
.getInstance(IsoFileOperation.class).openInputStream(source);
try {
IsoOutputStream outputStream = openInternalOutputStream(target);
try {
context.getInstance(IsoIOUtil.class).copy(inputStream,
outputStream);
} finally {
outputStream.close();
}
} finally {
inputStream.close();
}
}