char firstChar = (char) this.in.read(); char secondChar = (char) this.in.read();
char firstChar; char secondChar; if (this.buffer != null) { firstChar = (char) this.buffer[ this.positionInBuffer++ ]; secondChar = (char) this.buffer[ this.positionInBuffer++ ]; } else { firstChar = (char) this.in.read(); secondChar = (char) this.in.read(); }
	public int read() throws IOException {		// we assume that the characters are encoded as ASCII,		// so there is one byte for each character//        int res =  (this.in.read() << 4) | this.in.read();//        return (res & 0xFF);		char firstChar = (char) this.in.read(); // ((this.in.read() << 8) | this.in.read() );		char secondChar = (char) this.in.read(); // ((this.in.read() << 8) | this.in.read() );		//System.out.print( firstChar + secondChar );		int f = Character.digit( firstChar, 16 ) << 4;        f = f | Character.digit( secondChar, 16 );        //TODO there should be an easier/faster method for without using characters at all        return (f & 0xFF);	}