/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } try { return mInput.readMore(this, minAmount); } catch (IOException ie) { throw constructFromIOE(ie); } }
protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputEnd); } try { if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } } catch (IOException ie) { throwFromIOE(ie); } return false; }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws IOException { int currAmount = mInputLen - mInputPtr; if (currAmount >= minAmount) { return true; } return mInput.readMore(this, minAmount); }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws IOException { int currAmount = mInputLen - mInputPtr; if (currAmount >= minAmount) { return true; } return mInput.readMore(this, minAmount); }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws IOException { int currAmount = mInputLen - mInputPtr; if (currAmount >= minAmount) { return true; } return mInput.readMore(this, minAmount); }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } try { return mInput.readMore(this, minAmount); } catch (IOException ie) { throw constructFromIOE(ie); } }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } try { return mInput.readMore(this, minAmount); } catch (IOException ie) { throw constructFromIOE(ie); } }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } try { return mInput.readMore(this, minAmount); } catch (IOException ie) { throw constructFromIOE(ie); } }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } try { return mInput.readMore(this, minAmount); } catch (IOException ie) { throw constructFromIOE(ie); } }
/** * Method called to make sure current main-level input buffer has at * least specified number of characters available consequtively, * without having to call {@link #loadMore}. It can only be called * when input comes from main-level buffer; further, call can shift * content in input buffer, so caller has to flush any data still * pending. In short, caller has to know exactly what it's doing. :-) *<p> * Note: method does not check for any other input sources than the * current one -- if current source can not fulfill the request, a * failure is indicated. * * @return true if there's now enough data; false if not (EOF) */ protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } try { return mInput.readMore(this, minAmount); } catch (IOException ie) { throw constructFromIOE(ie); } }
protected boolean ensureInput(int minAmount) throws IOException { int currAmount = mInputLen - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputLen); } if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } return false; }
protected boolean ensureInput(int minAmount) throws IOException { int currAmount = mInputLen - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputLen); } if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } return false; }
protected boolean ensureInput(int minAmount) throws IOException { int currAmount = mInputLen - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputLen); } if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } return false; }
@Override protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputEnd); } try { if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } } catch (IOException ie) { throwFromIOE(ie); } return false; }
@Override protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputEnd); } try { if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } } catch (IOException ie) { throwFromIOE(ie); } return false; }
protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputEnd); } try { if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } } catch (IOException ie) { throwFromIOE(ie); } return false; }
@Override protected boolean ensureInput(int minAmount) throws XMLStreamException { int currAmount = mInputEnd - mInputPtr; if (currAmount >= minAmount) { return true; } // Any flattened not-yet-output input to flush? if (mFlattenWriter != null) { mFlattenWriter.flush(mInputBuffer, mInputEnd); } try { if (mInput.readMore(this, minAmount)) { if (mFlattenWriter != null) { //mFlattenWriter.setFlattenStart(mInputPtr); mFlattenWriter.setFlattenStart(currAmount); } return true; } } catch (IOException ie) { throwFromIOE(ie); } return false; }