DataUtil.Integer(PROP_IMPL_NAME)); sStdProperties.put(XMLStreamProperties.XSP_IMPLEMENTATION_VERSION, DataUtil.Integer(PROP_IMPL_VERSION)); DataUtil.Integer(PROP_SUPPORTS_XML11)); DataUtil.Integer(PROP_SUPPORT_XMLID)); DataUtil.Integer(PROP_RETURN_NULL_FOR_DEFAULT_NAMESPACE)); DataUtil.Integer(PROP_IMPL_NAME));
public void writeComment(String data) throws XMLStreamException { mAnyOutput = true; // Need to finish an open start element? if (mStartElementOpen) { closeStartElement(mEmptyElement); } // 08-Dec-2005, TSa: validator-based validation? if (mVldContent == XMLValidator.CONTENT_ALLOW_NONE) { reportInvalidContent(COMMENT); } /* No structural validation needed per se, for comments; they are * allowed anywhere in XML content. However, content may need to * be checked (by XmlWriter) */ int ix; try { ix = mWriter.writeComment(data); } catch (IOException ioe) { throw new WstxIOException(ioe); } if (ix >= 0) { reportNwfContent(ErrorConsts.WERR_COMMENT_CONTENT, DataUtil.Integer(ix)); } }
throwOutputError(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
return DataUtil.Integer(getInputBufferLength()); case PROP_MAX_ATTRIBUTES_PER_ELEMENT: return DataUtil.Integer(getMaxAttributesPerElement()); case PROP_MAX_ATTRIBUTE_SIZE: return DataUtil.Integer(getMaxAttributeSize()); case PROP_MAX_CHILDREN_PER_ELEMENT: return DataUtil.Integer(getMaxChildrenPerElement()); case PROP_MAX_ELEMENT_DEPTH: return DataUtil.Integer(getMaxElementDepth()); case PROP_MAX_ELEMENT_COUNT: return DataUtil.Long(getMaxElementCount()); return DataUtil.Long(getMaxTextLength()); case PROP_MAX_ENTITY_DEPTH: return DataUtil.Integer(getMaxEntityDepth()); case PROP_MAX_ENTITY_COUNT: return DataUtil.Long(getMaxEntityCount()); return DataUtil.Integer(getShortestReportedTextSegment()); case PROP_CUSTOM_INTERNAL_ENTITIES: return getCustomInternalEntities();
reportNwfContent(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
DataUtil.Integer(PROP_IMPL_NAME)); sStdProperties.put(XMLStreamProperties.XSP_IMPLEMENTATION_VERSION, DataUtil.Integer(PROP_IMPL_VERSION)); DataUtil.Integer(PROP_SUPPORTS_XML11)); DataUtil.Integer(PROP_SUPPORT_XMLID)); DataUtil.Integer(PROP_RETURN_NULL_FOR_DEFAULT_NAMESPACE)); DataUtil.Integer(PROP_IMPL_NAME));
DataUtil.Integer(PROP_IMPL_NAME)); sStdProperties.put(XMLStreamProperties.XSP_IMPLEMENTATION_VERSION, DataUtil.Integer(PROP_IMPL_VERSION)); DataUtil.Integer(PROP_SUPPORTS_XML11)); DataUtil.Integer(PROP_SUPPORT_XMLID)); DataUtil.Integer(PROP_RETURN_NULL_FOR_DEFAULT_NAMESPACE)); DataUtil.Integer(PROP_IMPL_NAME));
@Override public void writeComment(String data) throws XMLStreamException { mAnyOutput = true; // Need to finish an open start element? if (mStartElementOpen) { closeStartElement(mEmptyElement); } // 08-Dec-2005, TSa: validator-based validation? if (mVldContent == XMLValidator.CONTENT_ALLOW_NONE) { reportInvalidContent(COMMENT); } /* No structural validation needed per se, for comments; they are * allowed anywhere in XML content. However, content may need to * be checked (by XmlWriter) */ int ix; try { ix = mWriter.writeComment(data); } catch (IOException ioe) { throw new WstxIOException(ioe); } if (ix >= 0) { reportNwfContent(ErrorConsts.WERR_COMMENT_CONTENT, DataUtil.Integer(ix)); } }
public void writeComment(String data) throws XMLStreamException { mAnyOutput = true; // Need to finish an open start element? if (mStartElementOpen) { closeStartElement(mEmptyElement); } // 08-Dec-2005, TSa: validator-based validation? if (mVldContent == XMLValidator.CONTENT_ALLOW_NONE) { reportInvalidContent(COMMENT); } /* No structural validation needed per se, for comments; they are * allowed anywhere in XML content. However, content may need to * be checked (by XmlWriter) */ int ix; try { ix = mWriter.writeComment(data); } catch (IOException ioe) { throw new WstxIOException(ioe); } if (ix >= 0) { reportNwfContent(ErrorConsts.WERR_COMMENT_CONTENT, DataUtil.Integer(ix)); } }
@Override public void writeComment(String data) throws XMLStreamException { mAnyOutput = true; // Need to finish an open start element? if (mStartElementOpen) { closeStartElement(mEmptyElement); } // 08-Dec-2005, TSa: validator-based validation? if (mVldContent == XMLValidator.CONTENT_ALLOW_NONE) { reportInvalidContent(COMMENT); } /* No structural validation needed per se, for comments; they are * allowed anywhere in XML content. However, content may need to * be checked (by XmlWriter) */ int ix; try { ix = mWriter.writeComment(data); } catch (IOException ioe) { throw new WstxIOException(ioe); } if (ix >= 0) { reportNwfContent(ErrorConsts.WERR_COMMENT_CONTENT, DataUtil.Integer(ix)); } }
@Override public void writeComment(String data) throws XMLStreamException { mAnyOutput = true; // Need to finish an open start element? if (mStartElementOpen) { closeStartElement(mEmptyElement); } // 08-Dec-2005, TSa: validator-based validation? if (mVldContent == XMLValidator.CONTENT_ALLOW_NONE) { reportInvalidContent(COMMENT); } /* No structural validation needed per se, for comments; they are * allowed anywhere in XML content. However, content may need to * be checked (by XmlWriter) */ int ix; try { ix = mWriter.writeComment(data); } catch (IOException ioe) { throw new WstxIOException(ioe); } if (ix >= 0) { reportNwfContent(ErrorConsts.WERR_COMMENT_CONTENT, DataUtil.Integer(ix)); } }
return DataUtil.Integer(getInputBufferLength()); case PROP_MAX_ATTRIBUTES_PER_ELEMENT: return DataUtil.Integer(getMaxAttributesPerElement()); case PROP_MAX_ATTRIBUTE_SIZE: return DataUtil.Integer(getMaxAttributeSize()); case PROP_MAX_CHILDREN_PER_ELEMENT: return DataUtil.Integer(getMaxChildrenPerElement()); case PROP_MAX_ELEMENT_DEPTH: return DataUtil.Integer(getMaxElementDepth()); case PROP_MAX_ELEMENT_COUNT: return Long.valueOf(getMaxElementCount()); return Long.valueOf(getMaxTextLength()); case PROP_MAX_ENTITY_DEPTH: return DataUtil.Integer(getMaxEntityDepth()); case PROP_MAX_ENTITY_COUNT: return Long.valueOf(getMaxEntityCount()); return DataUtil.Integer(getShortestReportedTextSegment()); case PROP_CUSTOM_INTERNAL_ENTITIES: return getCustomInternalEntities();
throwOutputError(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
throwOutputError(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
reportNwfContent(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
reportNwfContent(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
reportNwfContent(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
throwOutputError(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
return DataUtil.Integer(getInputBufferLength()); case PROP_MAX_ATTRIBUTES_PER_ELEMENT: return DataUtil.Integer(getMaxAttributesPerElement()); case PROP_MAX_ATTRIBUTE_SIZE: return DataUtil.Integer(getMaxAttributeSize()); case PROP_MAX_CHILDREN_PER_ELEMENT: return DataUtil.Integer(getMaxChildrenPerElement()); case PROP_MAX_ELEMENT_DEPTH: return DataUtil.Integer(getMaxElementDepth()); case PROP_MAX_ELEMENT_COUNT: return DataUtil.Long(getMaxElementCount()); return DataUtil.Long(getMaxTextLength()); case PROP_MAX_ENTITY_DEPTH: return DataUtil.Integer(getMaxEntityDepth()); case PROP_MAX_ENTITY_COUNT: return DataUtil.Long(getMaxEntityCount()); return DataUtil.Integer(getShortestReportedTextSegment()); case PROP_CUSTOM_INTERNAL_ENTITIES: return getCustomInternalEntities();
throwOutputError(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));