question: 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 ( ) ) ; }
target:  A 'streamless' version of encode that simply takes a buffer of bytes and returns a string containing the encoded buffer.