protected final void doWriteAttr(String localName, String nsURI, String prefix, char[] buf, int start, int len) throws XMLStreamException { if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } if (mValidator != null) { /* No need to get it normalized... even if validator does normalize * it, we don't use that for anything */ mValidator.validateAttribute(localName, nsURI, prefix, buf, start, len); } try { if (prefix != null && prefix.length() > 0) { mWriter.writeAttribute(prefix, localName, buf, start, len); } else { mWriter.writeAttribute(localName, buf, start, len); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
mCurrElem.checkAttrWrite(nsURI, localName);
protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void doWriteAttr(String localName, String nsURI, String prefix, char[] buf, int start, int len) throws XMLStreamException { if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } if (mValidator != null) { // No need to get it normalized... even if validator does normalize // it, we don't use that for anything mValidator.validateAttribute(localName, nsURI, prefix, buf, start, len); } try { if (prefix != null && prefix.length() > 0) { mWriter.writeAttribute(prefix, localName, buf, start, len); } else { mWriter.writeAttribute(localName, buf, start, len); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void doWriteAttr(String localName, String nsURI, String prefix, char[] buf, int start, int len) throws XMLStreamException { if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } if (mValidator != null) { /* No need to get it normalized... even if validator does normalize * it, we don't use that for anything */ mValidator.validateAttribute(localName, nsURI, prefix, buf, start, len); } try { if (prefix != null && prefix.length() > 0) { mWriter.writeAttribute(prefix, localName, buf, start, len); } else { mWriter.writeAttribute(localName, buf, start, len); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void doWriteAttr(String localName, String nsURI, String prefix, char[] buf, int start, int len) throws XMLStreamException { if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } if (mValidator != null) { // No need to get it normalized... even if validator does normalize // it, we don't use that for anything mValidator.validateAttribute(localName, nsURI, prefix, buf, start, len); } try { if (prefix != null && prefix.length() > 0) { mWriter.writeAttribute(prefix, localName, buf, start, len); } else { mWriter.writeAttribute(localName, buf, start, len); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void doWriteAttr(String localName, String nsURI, String prefix, char[] buf, int start, int len) throws XMLStreamException { if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } if (mValidator != null) { // No need to get it normalized... even if validator does normalize // it, we don't use that for anything mValidator.validateAttribute(localName, nsURI, prefix, buf, start, len); } try { if (prefix != null && prefix.length() > 0) { mWriter.writeAttribute(prefix, localName, buf, start, len); } else { mWriter.writeAttribute(localName, buf, start, len); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
mCurrElem.checkAttrWrite(nsURI, localName, value);
mCurrElem.checkAttrWrite(nsURI, localName);
mCurrElem.checkAttrWrite(nsURI, localName);
mCurrElem.checkAttrWrite(nsURI, localName, value);
mCurrElem.checkAttrWrite(nsURI, localName, value);
mCurrElem.checkAttrWrite(nsURI, localName);
mCurrElem.checkAttrWrite(nsURI, localName);
protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }