public String encodeBuffer(byte aBuffer[]){
  ByteArrayOutputStream outStream=new ByteArrayOutputStream();
  ByteArrayInputStream inStream=new ByteArrayInputStream(aBuffer);
  try {
    encodeBuffer(inStream,outStream);
  }
 catch (  Exception IOException) {
    throw new Error("CharacterEncoder.encodeBuffer internal error");
  }
  return (outStream.toString());
}

public String encodeBuffer ( byte aBuffer [ ] ) { ByteArrayOutputStream outStream = new ByteArrayOutputStream ( ) ; ByteArrayInputStream inStream = new ByteArrayInputStream ( aBuffer ) ; try { encodeBuffer ( inStream , outStream ) ; } catch ( Exception IOException ) { throw new Error ( "CharacterEncoder.encodeBuffer internal error" ) ; } return ( outStream . toString ( ) ) ; }
316 * a ' streamless ' version of encode that simply takes a buffer of 317 * bytes and returns a string containing the encoded buffer . 318
