public void position(final long position) throws IOException {
  this.position=Math.min(position,length());
}

public void position ( final long position ) throws IOException { this . position = Math . min ( position , length ( ) ) ; }
positions the input stream .
