private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
private char readArity() throws XMLStreamException { char c = (mInputPtr < mInputEnd) ? mInputBuffer[mInputPtr++] : getNextChar(getErrorMsg()); if (c == '?' || c == '*' || c == '+') { return c; } // Hmmh, not recognized, let's put it back: --mInputPtr; // Default is 'just one' return ' '; }
private void loadMoreScoped(WstxInputSource currScope, String entityName, Location loc) throws XMLStreamException { boolean check = (mInput == currScope); loadMore(getErrorMsg()); // Did we get out of the scope? if (check && (mInput != currScope)) { _reportWFCViolation("Unterminated entity value for entity '" +entityName+"' (definition started at " +loc+")"); } }
/** * Method that will get next character, and either return it as is (for * normal chars), or expand parameter entity that starts with next * character (which has to be '%'). */ private char getNextExpanded() throws XMLStreamException { while (true) { char c = (mInputPtr < mInputEnd) ? mInputBuffer[mInputPtr++] : getNextChar(getErrorMsg()); if (c != '%') { return c; } expandPE(); } }
private char skipDtdWs(boolean handlePEs) throws XMLStreamException { while (true) { char c = (mInputPtr < mInputEnd) ? mInputBuffer[mInputPtr++] : getNextChar(getErrorMsg()); if (c > CHAR_SPACE) { if (c == '%' && handlePEs) { expandPE(); continue; } return c; } if (c == '\n' || c == '\r') { skipCRLF(c); } else if (c != CHAR_SPACE && c != '\t') { throwInvalidSpace(c); } } }
c = getNextChar(getErrorMsg()); ? mInputBuffer[mInputPtr++] : getNextChar(getErrorMsg());
throwDTDUnexpectedChar(c, "; expected a quote to start the public identifier"); pubId = parsePublicId(c, getErrorMsg()); c = skipDtdWs(true); } else { sysId = parseSystemId(c, mNormalizeLFs, getErrorMsg()); c = skipDtdWs(true); } else {
mInputBuffer[mInputPtr++] : getNextChar(getErrorMsg()); if (c != '*') { if (m.size() > 0) {
String errorMsg = getErrorMsg(); while (true) { c = (mInputPtr < mInputEnd)
private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
private void throwDTDUnexpectedChar(int i, String extraMsg) throws XMLStreamException { if (extraMsg == null) { throwUnexpectedChar(i, getErrorMsg()); } throwUnexpectedChar(i, getErrorMsg()+extraMsg); }
throwUnexpectedEOF(getErrorMsg()+"; expected closing marker for "+suffix);
private void loadMoreScoped(WstxInputSource currScope, String entityName, Location loc) throws XMLStreamException { boolean check = (mInput == currScope); loadMore(getErrorMsg()); // Did we get out of the scope? if (check && (mInput != currScope)) { _reportWFCViolation("Unterminated entity value for entity '" +entityName+"' (definition started at " +loc+")"); } }
throwDTDUnexpectedChar(c, "; expected a quote to start the public identifier"); pubId = parsePublicId(c, getErrorMsg()); throwDTDUnexpectedChar(c, "; expected a quote to start the system identifier"); String sysId = parseSystemId(c, mNormalizeLFs, getErrorMsg());
if (mInputPtr >= mInputEnd) { boolean check = (mInput == currScope); loadMore(getErrorMsg());