code: private static void compressTBZ2(Resource[] sources, Resource target, int mode) throws IOException {
  	// File tmpTarget = File.createTempFile("_temp","tmp");
  	ByteArrayOutputStream baos = new ByteArrayOutputStream();
  	compressTar(sources, baos, mode);
  	_compressBZip2(new ByteArrayInputStream(baos.toByteArray()), target.getOutputStream());
  	// tmpTarget.delete();
      }
docs: compress a source file/directory to a tar/bzip2 file
  
  @param sources
  @param target
  @param mode
  @throws IOException