OutputStream os = fileContentStream;
if (PharConstants.BZ2_COMPRESSED == pharPackage.getCompressType()) {
// i think here should be CBZip2OutputStream,but it does not work
// and CBZip2OutputStreamForPhar works well.
// i do not know why
os = new CBZip2OutputStreamForPhar(os);
} else if (PharConstants.GZ_COMPRESSED == pharPackage.getCompressType()) {
os = new GZIPOutputStream(os);
}
outputStream = new TarOutputStream(os);
}