throw new IOException("Not BZIP2 format");
}
if (in.read() != 'Z') {
throw new IOException("Not BZIP2 format");
}
BufferedInputStream gzis = new BufferedInputStream(new CBZip2InputStream(in));
String path = doc.get("path");
if (path != null &&
(path.endsWith(".bz2") || path.endsWith(".BZ2") || path.endsWith(".bz"))
) {
String newname = path.substring(0, path.lastIndexOf('.'));