protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
private final void reportPseudoAttrProblem(String attrName, String got, String expVal1, String expVal2) throws WstxException { String expStr = (expVal1 == null) ? "" : ("; expected \""+expVal1+"\" or \""+expVal2+"\""); if (got == null || got.length() == 0) { throw new WstxParsingException("Missing XML pseudo-attribute '"+attrName+"' value"+expStr, getLocation()); } throw new WstxParsingException("Invalid XML pseudo-attribute '"+attrName+"' value "+got+expStr, getLocation()); } }
protected void reportUnexpectedChar(int i, String msg) throws WstxException { char c = (char) i; String excMsg; // WTF? JDK thinks null char is just fine as?! if (Character.isISOControl(c)) { excMsg = "Unexpected character (CTRL-CHAR, code "+i+")"+msg; } else { excMsg = "Unexpected character '"+c+"' (code "+i+")"+msg; } Location loc = getLocation(); throw new WstxUnexpectedCharException(excMsg, loc, c); }
protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportNull() throws WstxException { throw new WstxException("Illegal null byte in input stream", getLocation()); }
protected void reportUnexpectedChar(int i, String msg) throws WstxException { char c = (char) i; String excMsg; // WTF? JDK thinks null char is just fine as?! if (Character.isISOControl(c)) { excMsg = "Unexpected character (CTRL-CHAR, code "+i+")"+msg; } else { excMsg = "Unexpected character '"+c+"' (code "+i+")"+msg; } Location loc = getLocation(); throw new WstxUnexpectedCharException(excMsg, loc, c); }
private final void reportPseudoAttrProblem(String attrName, String got, String expVal1, String expVal2) throws WstxException { String expStr = (expVal1 == null) ? "" : ("; expected \""+expVal1+"\" or \""+expVal2+"\""); if (got == null || got.length() == 0) { throw new WstxParsingException("Missing XML pseudo-attribute '"+attrName+"' value"+expStr, getLocation()); } throw new WstxParsingException("Invalid XML pseudo-attribute '"+attrName+"' value "+got+expStr, getLocation()); } }