/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }
public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), total, row, col); } }
@Override public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), total, row, col); } }
/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ @Override protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }
@Override public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), total, row, col); } }
/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }
public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), (int) total, row, col); } }
/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }
public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), total, row, col); } }
/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }
public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), (int) total, row, col); } }
/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }
public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), (int) total, row, col); } }
/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ @Override protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }
@Override public final WstxInputLocation getLocation(long total, int row, int col) { WstxInputLocation pl; if (mParent == null) { pl = null; } else { /* 13-Apr-2005, TSa: We can actually reuse parent location, since * it can not change during lifetime of this child context... */ pl = mParentLocation; if (pl == null) { mParentLocation = pl = mParent.getLocation(); } pl = mParent.getLocation(); } /* !!! 15-Apr-2005, TSa: This will cause overflow for total count, * but since StAX 1.0 API doesn't have any way to deal with that, * let's just let that be... */ return new WstxInputLocation(pl, getPublicId(), getSystemId(), total, row, col); } }
/** * This method only gets called by the 'child' input source (for example, * contents of an expanded entity), to get the enclosing context location. */ @Override protected final WstxInputLocation getLocation() { // Note: columns are 1-based, need to add 1. return getLocation(mSavedInputProcessed + mSavedInputPtr - 1L, mSavedInputRow, mSavedInputPtr - mSavedInputRowStart + 1); }