protected final void writeTypedElement(AsciiValueEncoder enc) throws XMLStreamException { if (mStartElementOpen) { closeStartElement(mEmptyElement); } // How about well-formedness? if (mCheckStructure) { if (inPrologOrEpilog()) { reportNwfStructure(ErrorConsts.WERR_PROLOG_NONWS_TEXT); } } // Or validity? if (mVldContent <= XMLValidator.CONTENT_ALLOW_WS) { reportInvalidContent(CHARACTERS); } // So far so good: let's serialize try { XMLValidator vld = (mVldContent == XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT) ? mValidator : null; if (vld == null) { mWriter.writeTypedElement(enc); } else { mWriter.writeTypedElement(enc, vld, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void writeTypedElement(AsciiValueEncoder enc) throws XMLStreamException { if (mStartElementOpen) { closeStartElement(mEmptyElement); } // How about well-formedness? if (mCheckStructure) { if (inPrologOrEpilog()) { reportNwfStructure(ErrorConsts.WERR_PROLOG_NONWS_TEXT); } } // Or validity? if (mVldContent <= XMLValidator.CONTENT_ALLOW_WS) { reportInvalidContent(CHARACTERS); } // So far so good: let's serialize try { XMLValidator vld = (mVldContent == XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT) ? mValidator : null; if (vld == null) { mWriter.writeTypedElement(enc); } else { mWriter.writeTypedElement(enc, vld, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void writeTypedElement(AsciiValueEncoder enc) throws XMLStreamException { if (mStartElementOpen) { closeStartElement(mEmptyElement); } // How about well-formedness? if (mCheckStructure) { if (inPrologOrEpilog()) { reportNwfStructure(ErrorConsts.WERR_PROLOG_NONWS_TEXT); } } // Or validity? if (mVldContent <= XMLValidator.CONTENT_ALLOW_WS) { reportInvalidContent(CHARACTERS); } // So far so good: let's serialize try { XMLValidator vld = (mVldContent == XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT) ? mValidator : null; if (vld == null) { mWriter.writeTypedElement(enc); } else { mWriter.writeTypedElement(enc, vld, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void writeTypedElement(AsciiValueEncoder enc) throws XMLStreamException { if (mStartElementOpen) { closeStartElement(mEmptyElement); } // How about well-formedness? if (mCheckStructure) { if (inPrologOrEpilog()) { reportNwfStructure(ErrorConsts.WERR_PROLOG_NONWS_TEXT); } } // Or validity? if (mVldContent <= XMLValidator.CONTENT_ALLOW_WS) { reportInvalidContent(CHARACTERS); } // So far so good: let's serialize try { XMLValidator vld = (mVldContent == XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT) ? mValidator : null; if (vld == null) { mWriter.writeTypedElement(enc); } else { mWriter.writeTypedElement(enc, vld, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected final void writeTypedElement(AsciiValueEncoder enc) throws XMLStreamException { if (mStartElementOpen) { closeStartElement(mEmptyElement); } // How about well-formedness? if (mCheckStructure) { if (inPrologOrEpilog()) { reportNwfStructure(ErrorConsts.WERR_PROLOG_NONWS_TEXT); } } // Or validity? if (mVldContent <= XMLValidator.CONTENT_ALLOW_WS) { reportInvalidContent(CHARACTERS); } // So far so good: let's serialize try { XMLValidator vld = (mVldContent == XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT) ? mValidator : null; if (vld == null) { mWriter.writeTypedElement(enc); } else { mWriter.writeTypedElement(enc, vld, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }