public void fax4Encode(byte[] data,int offset,int size){
  dataBp=data;
  offsetData=offset;
  sizeData=size;
  while (sizeData > 0) {
    Fax3Encode2DRow();
    System.arraycopy(dataBp,offsetData,refline,0,rowbytes);
    offsetData+=rowbytes;
    sizeData-=rowbytes;
  }
}

public void fax4Encode ( byte [ ] data , int offset , int size ) { dataBp = data ; offsetData = offset ; sizeData = size ; while ( sizeData > 0 ) { Fax3Encode2DRow ( ) ; System . arraycopy ( dataBp , offsetData , refline , 0 , rowbytes ) ; offsetData += rowbytes ; sizeData -= rowbytes ; } }
encodes a number of lines .
