public void encode(InputStream inStream,OutputStream outStream) throws IOException {
  int j;
  int numBytes;
  byte tmpbuffer[]=new byte[bytesPerLine()];
  encodeBufferPrefix(outStream);
  while (true) {
    numBytes=readFully(inStream,tmpbuffer);
    if (numBytes == 0) {
      break;
    }
    encodeLinePrefix(outStream,numBytes);
    for (j=0; j < numBytes; j+=bytesPerAtom()) {
      if ((j + bytesPerAtom()) <= numBytes) {
        encodeAtom(outStream,tmpbuffer,j,bytesPerAtom());
      }
 else {
        encodeAtom(outStream,tmpbuffer,j,(numBytes) - j);
      }
    }
    if (numBytes < bytesPerLine()) {
      break;
    }
 else {
      encodeLineSuffix(outStream);
    }
  }
  encodeBufferSuffix(outStream);
}

public void encode ( InputStream inStream , OutputStream outStream ) throws IOException { int j ; int numBytes ; byte tmpbuffer [ ] = new byte [ bytesPerLine ( ) ] ; encodeBufferPrefix ( outStream ) ; while ( true ) { numBytes = readFully ( inStream , tmpbuffer ) ; if ( numBytes == 0 ) { break ; } encodeLinePrefix ( outStream , numBytes ) ; for ( j = 0 ; j < numBytes ; j += bytesPerAtom ( ) ) { if ( ( j + bytesPerAtom ( ) ) <= numBytes ) { encodeAtom ( outStream , tmpbuffer , j , bytesPerAtom ( ) ) ; } else { encodeAtom ( outStream , tmpbuffer , j , ( numBytes ) - j ) ; } } if ( numBytes < bytesPerLine ( ) ) { break ; } else { encodeLineSuffix ( outStream ) ; } } encodeBufferSuffix ( outStream ) ; }
136 * encode bytes from the input stream , and write them as text characters 137 * to the output stream . this method will run until it exhausts the 138 * input stream , but does not print the line suffix for a final 139 * line that is shorter than bytesperline ( ) . 140
