protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
mTextBuffer.recycle(false); return mCurrToken;
mTextBuffer.recycle(true);
protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
protected int handleEOF(boolean isProlog) throws XMLStreamException { /* 19-Aug-2006, TSa: mSecondaryToken needs to be initialized to * END_DOCUMENT so we'll know it hasn't been yet accessed. */ mCurrToken = mSecondaryToken = END_DOCUMENT; /* Although buffers have most likely already been recycled, * let's call this again just in case. At this point we can * safely discard any contents */ mTextBuffer.recycle(true); // true -> clean'n recycle // It's ok to get EOF from epilog but not from prolog if (isProlog) { throwUnexpectedEOF(SUFFIX_IN_PROLOG); } return mCurrToken; }
mTextBuffer.recycle(true);
mTextBuffer.recycle(true);
mTextBuffer.recycle(false); return mCurrToken;
mTextBuffer.recycle(true);
mTextBuffer.recycle(false); return mCurrToken;
mTextBuffer.recycle(false); return mCurrToken;
mTextBuffer.recycle(true);
mTextBuffer.recycle(true);
mTextBuffer.recycle(true);
mTextBuffer.recycle(false); return mCurrToken;