public void insert(File aFile,long position) throws IOException {
  long fileLength=aFile.length();
  if (fileLength < 1L || position > length())   return;
  Range newRange=new Range(position,aFile,true);
  dirty=true;
  lastUpperNibblePosition=-1L;
  if (actions != null)   actions.eventPreModify(ActionHistory.ActionType.INSERT,position,false);
  commitChanges();
  insertRange(newRange);
  if (actions != null)   actions.addInserted((Range)newRange.clone());
  notifyListeners();
}

public void insert ( File aFile , long position ) throws IOException { long fileLength = aFile . length ( ) ; if ( fileLength < 1L || position > length ( ) ) return ; Range newRange = new Range ( position , aFile , true ) ; dirty = true ; lastUpperNibblePosition = - 1L ; if ( actions != null ) actions . eventPreModify ( ActionHistory . ActionType . INSERT , position , false ) ; commitChanges ( ) ; insertRange ( newRange ) ; if ( actions != null ) actions . addInserted ( ( Range ) newRange . clone ( ) ) ; notifyListeners ( ) ; }
inserts a sequence of bytes from the given file into this content , starting at the given position and shifting the existing ones .
