int a, c, d, val;
	private int getChar() throws EncodingException, EOFException,			ParseException {		int temp;		int a, c, d, val;		if (offset >= endOffset)			throw new EOFException(					"permature EOF reached, XML document incomplete");		switch (encoding) {		case FORMAT_ASCII:			temp = XMLDoc[offset]&0x7f;						offset++;			return temp;				//throw new EncodingException("Invalid char for ASCII encoding"		//		+formatLineNumber());		case FORMAT_UTF8:			temp = XMLDoc[offset];			if (temp >= 0) {				offset++;				return temp;			}			return handleUTF8(temp);		case FORMAT_UTF_16BE:		    return handle_16be();		    		case FORMAT_UTF_16LE:		    return handle_16le();		    		case FORMAT_ISO_8859:			temp = XMLDoc[offset];			offset++;			return temp & 0xff;					default:			throw new EncodingException("Unknown encoding");		}	}