public void addLineOffset(int offset){
  if (numLines >= lineNumberMap.length) {
    int capacity=lineNumberMap.length * 2;
    int[] newLineNumberMap=new int[capacity];
    System.arraycopy(lineNumberMap,0,newLineNumberMap,0,lineNumberMap.length);
    lineNumberMap=newLineNumberMap;
  }
  lineNumberMap[numLines++]=offset;
}

public void addLineOffset ( int offset ) { if ( numLines >= lineNumberMap . length ) { int capacity = lineNumberMap . length * 2 ; int [ ] newLineNumberMap = new int [ capacity ] ; System . arraycopy ( lineNumberMap , 0 , newLineNumberMap , 0 , lineNumberMap . length ) ; lineNumberMap = newLineNumberMap ; } lineNumberMap [ numLines ++ ] = offset ; }
add a source line byte offset . this method should be called for each line in the source file , in order .
