common/src/main/java/com/genexus/internet/CharacterEncoder.java
/**
   * Encode the contents of the buffer and return it as a String.
   */
Encode the contents of the buffer and return it as a String.
Encode the contents of the buffer and return it as a String .
public final String encodeBuffer(byte[] buf) {
    ByteArrayInputStream bin = new ByteArrayInputStream(buf);
    ByteArrayOutputStream bout = new ByteArrayOutputStream((int) (buf.length*1.4));
    try { encodeBuffer(bin, bout); } catch (IOException e) {}
    return new String(bout.toByteArray());
  }
public final String encodeBuffer ( byte [ ] buf ) { ByteArrayInputStream bin = new ByteArrayInputStream ( buf ) ; ByteArrayOutputStream bout = new ByteArrayOutputStream ( ( int ) ( buf . length * 1.4 ) ) ; try { encodeBuffer ( bin , bout ) ; } catch ( IOException e ) { } return new String ( bout . toByteArray ( ) ) ; }
Encode the contents of the buffer and return it as a String.
Encode the contents of the buffer and return it as a String .
// The encoded form is approximately 33 % bigger than the unencoded form