common/src/main/java/com/genexus/internet/CharacterEncoder.java
/**
   * Encode the contents of the buffer and write the encoded form
   * to the OutputStream.
   * @throws IOException        if an I/O error has occurred.
   */
Encode the contents of the buffer and write the encoded form
to the OutputStream.
@throws IOException        if an I/O error has occurred.
Encode the contents of the buffer and write the encoded form to the OutputStream . @throws IOException if an I / O error has occurred .
public void encodeBuffer(byte[] buf, OutputStream out)
    throws IOException
  {
    ByteArrayInputStream bin = new ByteArrayInputStream(buf);
    encodeBuffer(bin, out);
  }
public void encodeBuffer ( byte [ ] buf , OutputStream out ) throws IOException { ByteArrayInputStream bin = new ByteArrayInputStream ( buf ) ; encodeBuffer ( bin , out ) ; }
Encode the contents of the buffer and write the encoded form
 to the OutputStream.
Encode the contents of the buffer and write the encoded form to the OutputStream .