protected byte[] toDb(byte[] b,boolean alwaysValid){
  byte[] ret=new byte[b.length + 1];
  System.arraycopy(b,0,ret,1,b.length);
  if (!alwaysValid && b.length == 0) {
    ret[0]=COMPLETE;
  }
 else {
    ret[0]=INCOMPLETE;
  }
  return ret;
}

protected byte [ ] toDb ( byte [ ] b , boolean alwaysValid ) { byte [ ] ret = new byte [ b . length + 1 ] ; System . arraycopy ( b , 0 , ret , 1 , b . length ) ; if ( ! alwaysValid && b . length == 0 ) { ret [ 0 ] = COMPLETE ; } else { ret [ 0 ] = INCOMPLETE ; } return ret ; }
prepends the byte array with a value that indicates if this range is complete .
