public OpenPGPCompressionOutputStream(OutputStream os, int buffersize,
			OpenPGPCompression compression) throws IOException {
		super(os, buffersize);

		// new compressed data packet
		out.write(0xC8);
		/*
		 * ID           Algorithm
		 * --           ---------
		 * 0          - Uncompressed
		 * 1          - ZIP [RFC1951]
		 * 2          - ZLIB [RFC1950]
		 * 3          - BZip2 [BZ2]
		 * 100 to 110 - Private/Experimental algorithm
		 */

		// set compression algorithm to deflate
		switch (compression) {
		case NONE:
			buf[0] = 0;
		case ZIP:
			buf[0] = 1;
			break;
		case ZLIB:
			buf[0] = 2;
			break;
		case BZIP2:
			buf[0] = 3;
			break;
		}
		pos = 1;
	}