protected void decodeBufferPrefix(PushbackInputStream inStream,OutputStream outStream) throws IOException {
  int c;
  StringBuffer q=new StringBuffer(32);
  String r;
  boolean sawNewLine;
  sawNewLine=true;
  while (true) {
    c=inStream.read();
    if (c == -1) {
      throw new CEFormatException("UUDecoder: No begin line.");
    }
    if ((c == 'b') && sawNewLine) {
      c=inStream.read();
      if (c == 'e') {
        break;
      }
    }
    sawNewLine=(c == '\n') || (c == '\r');
  }
  while ((c != '\n') && (c != '\r')) {
    c=inStream.read();
    if (c == -1) {
      throw new CEFormatException("UUDecoder: No begin line.");
    }
    if ((c != '\n') && (c != '\r')) {
      q.append((char)c);
    }
  }
  r=q.toString();
  if (r.indexOf(' ') != 3) {
    throw new CEFormatException("UUDecoder: Malformed begin line.");
  }
  mode=Integer.parseInt(r.substring(4,7));
  bufferName=r.substring(r.indexOf(' ',6) + 1);
  if (c == '\r') {
    c=inStream.read();
    if ((c != '\n') && (c != -1))     inStream.unread(c);
  }
}

protected void decodeBufferPrefix ( PushbackInputStream inStream , OutputStream outStream ) throws IOException { int c ; StringBuffer q = new StringBuffer ( 32 ) ; String r ; boolean sawNewLine ; sawNewLine = true ; while ( true ) { c = inStream . read ( ) ; if ( c == - 1 ) { throw new CEFormatException ( "UUDecoder: No begin line." ) ; } if ( ( c == 'b' ) && sawNewLine ) { c = inStream . read ( ) ; if ( c == 'e' ) { break ; } } sawNewLine = ( c == '\n' ) || ( c == '\r' ) ; } while ( ( c != '\n' ) && ( c != '\r' ) ) { c = inStream . read ( ) ; if ( c == - 1 ) { throw new CEFormatException ( "UUDecoder: No begin line." ) ; } if ( ( c != '\n' ) && ( c != '\r' ) ) { q . append ( ( char ) c ) ; } } r = q . toString ( ) ; if ( r . indexOf ( ' ' ) != 3 ) { throw new CEFormatException ( "UUDecoder: Malformed begin line." ) ; } mode = Integer . parseInt ( r . substring ( 4 , 7 ) ) ; bufferName = r . substring ( r . indexOf ( ' ' , 6 ) + 1 ) ; if ( c == '\r' ) { c = inStream . read ( ) ; if ( ( c != '\n' ) && ( c != - 1 ) ) inStream . unread ( c ) ; } }
for uuencoded buffers , the data begins with a line of the form : begin mode filename this line always starts in column 1 .
