@ Override protected void doInitInputLocation ( WstxInputData reader ) { reader . mCurrInputProcessed = mContentStart . getCharacterOffset ( ) ; reader . mCurrInputRow = mContentStart . getLineNumber ( ) ; /* 13-Apr-2005, TSa: Since column offsets reported by Location * objects are 1-based, but internally we use 0-based counts, * need to offset this start by 1 to begin with. */ reader . mCurrInputRowStart = - mContentStart . getColumnNumber ( ) + 1 ; }
Unlike with reader source we won t start from beginning of a file but usually from somewhere in the middle ...