protected final int boundLength(int offset,int length){
  return Math.min(length,this.boundLength - offset);
}

protected final int boundLength ( int offset , int length ) { return Math . min ( length , this . boundLength - offset ) ; }
gets the length in the underlying data taking into account any bounds on the data .
