protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
protected Location getLocation() { /* Ok; for fixed-size multi-byte encodings, need to divide numbers * to get character locations. For variable-length encodings the * good thing is that xml declaration only uses shortest codepoints, * ie. char count == byte count. */ int total = mInputProcessed + mInputPtr; int col = mInputPtr - mInputRowStart; if (mBytesPerChar > 1) { total /= mBytesPerChar; col /= mBytesPerChar; } return new WstxInputLocation(null, mPublicId, mSystemId, total - 1, // 0-based mInputRow, col); }
public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, (String) null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }
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 protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
@Override protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
@Override protected Location getLocation() { return new WstxInputLocation(null, mPublicId, mSystemId, mInputProcessed + mInputPtr - 1, mInputRow, mInputPtr - mInputRowStart); }
protected Location getLocation() { /* Ok; for fixed-size multi-byte encodings, need to divide numbers * to get character locations. For variable-length encodings the * good thing is that xml declaration only uses shortest codepoints, * ie. char count == byte count. */ int total = mInputProcessed + mInputPtr; int col = mInputPtr - mInputRowStart; if (mBytesPerChar > 1) { total /= mBytesPerChar; col /= mBytesPerChar; } return new WstxInputLocation(null, mPublicId, mSystemId, total - 1, // 0-based mInputRow, col); }
protected Location getLocation() { /* Ok; for fixed-size multi-byte encodings, need to divide numbers * to get character locations. For variable-length encodings the * good thing is that xml declaration only uses shortest codepoints, * ie. char count == byte count. */ int total = mInputProcessed + mInputPtr; int col = mInputPtr - mInputRowStart; if (mBytesPerChar > 1) { total /= mBytesPerChar; col /= mBytesPerChar; } return new WstxInputLocation(null, mPublicId, mSystemId, total - 1, // 0-based mInputRow, col); }
@Override public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, (String) null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }
public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }
@Override public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, (String) null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }
public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }
public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, (String) null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }
public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }
@Override public XMLStreamLocation2 getLocation() { return new WstxInputLocation(null, // no parent null, (String) null, // pub/sys ids not yet known mWriter.getAbsOffset(), mWriter.getRow(), mWriter.getColumn()); }