protected void commit() throws IOException {
			if (bytecounter > 0) {
				if (linelength > 0 && linecounter == linelength) {
					outputStream.write("\r\n".getBytes());
					linecounter = 0;
				}
				char b1 = CHARS.charAt((buffer << 8) >>> 26);
				char b2 = CHARS.charAt((buffer << 14) >>> 26);
				char b3 = (bytecounter < 2) ? PAD : CHARS.charAt((buffer << 20) >>> 26);
				char b4 = (bytecounter < 3) ? PAD : CHARS.charAt((buffer << 26) >>> 26);
				outputStream.write(b1);
				outputStream.write(b2);
				outputStream.write(b3);
				outputStream.write(b4);
				linecounter += 4;
				bytecounter = 0;
				buffer = 0;
			}
		}