public void fireDtdCommentEvent(DTDEventListener l) { // Comment can not be split, so may need to combine the array if (mResultArray != null) { // only happens for indentation l.dtdComment(mResultArray, 0, mResultArray.length); } else if (mInputStart >= 0) { // sharing input buffer? l.dtdComment(mInputBuffer, mInputStart, mInputLen); } else if (mSegments != null && mSegments.size() > 0) { char[] ch = contentsAsArray(); l.dtdComment(ch, 0, ch.length); } else { l.dtdComment(mCurrentSegment, 0, mCurrentSize); } }
mEventListener.dtdNotationDecl(id, pubId, sysId, baseURL);
mEventListener.dtdProcessingInstruction(target, ""); mEventListener.dtdProcessingInstruction(target, data);
/** * Undeclared parameter entity is a VC, not WFC... */ protected void handleUndeclaredEntity(String id) throws XMLStreamException { _reportVCViolation("Undeclared parameter entity '"+id+"'."); if (mCurrAttrDefault != null) { Location loc = getLastCharLocation(); if (mExpandingPE) { mCurrAttrDefault.addUndeclaredPE(id, loc); } else { mCurrAttrDefault.addUndeclaredGE(id, loc); } } if (mEventListener != null) { // GEs only matter when expanding... if (mExpandingPE) { mEventListener.dtdSkippedEntity("%"+id); } } }
throwDTDUnexpectedChar(c, "; expected '-' for a comment"); if (mEventListener != null && mEventListener.dtdReportComments()) { readComment(mEventListener); } else {
throw new WstxIOException(e); mEventListener.dtdUnparsedEntityDecl(id, ent.getPublicId(), ent.getSystemId(), ent.getNotationName(), src);
/** * Undeclared parameter entity is a VC, not WFC... */ protected void handleUndeclaredEntity(String id) throws XMLStreamException { _reportVCViolation("Undeclared parameter entity '"+id+"'."); if (mCurrAttrDefault != null) { Location loc = getLastCharLocation(); if (mExpandingPE) { mCurrAttrDefault.addUndeclaredPE(id, loc); } else { mCurrAttrDefault.addUndeclaredGE(id, loc); } } if (mEventListener != null) { // GEs only matter when expanding... if (mExpandingPE) { mEventListener.dtdSkippedEntity("%"+id); } } }
throwDTDUnexpectedChar(c, "; expected '-' for a comment"); if (mEventListener != null && mEventListener.dtdReportComments()) { readComment(mEventListener); } else {
throw new WstxIOException(e); mEventListener.dtdUnparsedEntityDecl(id, ent.getPublicId(), ent.getSystemId(), ent.getNotationName(), src);
public void fireDtdCommentEvent(DTDEventListener l) { // Comment can not be split, so may need to combine the array if (mResultArray != null) { // only happens for indentation l.dtdComment(mResultArray, 0, mResultArray.length); } else if (mInputStart >= 0) { // sharing input buffer? l.dtdComment(mInputBuffer, mInputStart, mInputLen); } else if (mSegments != null && mSegments.size() > 0) { char[] ch = contentsAsArray(); l.dtdComment(ch, 0, ch.length); } else { l.dtdComment(mCurrentSegment, 0, mCurrentSize); } }
/** * Undeclared parameter entity is a VC, not WFC... */ protected void handleUndeclaredEntity(String id) throws XMLStreamException { reportVCViolation("Undeclared parameter entity '"+id+"'."); if (mCurrAttrDefault != null) { Location loc = getLastCharLocation(); if (mExpandingPE) { mCurrAttrDefault.addUndeclaredPE(id, loc); } else { mCurrAttrDefault.addUndeclaredGE(id, loc); } } if (mEventListener != null) { // GEs only matter when expanding... if (mExpandingPE) { mEventListener.dtdSkippedEntity("%"+id); } } }
throwDTDUnexpectedChar(c, "; expected '-' for a comment"); if (mEventListener != null && mEventListener.dtdReportComments()) { readComment(mEventListener); } else {
mEventListener.dtdNotationDecl(id, pubId, sysId, baseURL);
mEventListener.dtdProcessingInstruction(target, ""); mEventListener.dtdProcessingInstruction(target, data);
throw new WstxIOException(e); mEventListener.dtdUnparsedEntityDecl(id, ent.getPublicId(), ent.getSystemId(), ent.getNotationName(), src);
public void fireDtdCommentEvent(DTDEventListener l) { // Comment can not be split, so may need to combine the array if (mResultArray != null) { // only happens for indentation l.dtdComment(mResultArray, 0, mResultArray.length); } else if (mInputStart >= 0) { // sharing input buffer? l.dtdComment(mInputBuffer, mInputStart, mInputLen); } else if (mSegments != null && mSegments.size() > 0) { char[] ch = contentsAsArray(); l.dtdComment(ch, 0, ch.length); } else { l.dtdComment(mCurrentSegment, 0, mCurrentSize); } }
/** * Undeclared parameter entity is a VC, not WFC... */ protected void handleUndeclaredEntity(String id) throws XMLStreamException { reportVCViolation("Undeclared parameter entity '"+id+"'."); if (mCurrAttrDefault != null) { Location loc = getLastCharLocation(); if (mExpandingPE) { mCurrAttrDefault.addUndeclaredPE(id, loc); } else { mCurrAttrDefault.addUndeclaredGE(id, loc); } } if (mEventListener != null) { // GEs only matter when expanding... if (mExpandingPE) { mEventListener.dtdSkippedEntity("%"+id); } } }
throwDTDUnexpectedChar(c, "; expected '-' for a comment"); if (mEventListener != null && mEventListener.dtdReportComments()) { readComment(mEventListener); } else {
mEventListener.dtdNotationDecl(id, pubId, sysId, baseURL);
mEventListener.dtdProcessingInstruction(target, ""); mEventListener.dtdProcessingInstruction(target, data);