long imgTxId = -1;
if (LayoutVersion.supports(Feature.STORED_TXIDS, imgVersion)) {
imgTxId = in.readLong();
}
FSImageCompression compression = FSImageCompression
.readCompressionHeader(new Configuration(), in);
if (compression.isNoOpCompression()) {
System.out
.println("Image is not compressed. No output will be produced.");
return;
}
in = BufferedByteInputStream.wrapInputStream(
compression.unwrapInputStream(in), FSImage.LOAD_SAVE_BUFFER_SIZE,
FSImage.LOAD_SAVE_CHUNK_SIZE);
System.out.println("Starting decompression.");
// setup output
out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(