/** * InputStream to String utf-8 * * @param input the <code>InputStream</code> to read from * @return the requested String */ IoUtil.readToString(InputStream input);
readToString
/** * InputStream to String * * @param input the <code>InputStream</code> to read from * @param charset the <code>Charset</code> * @return the requested String */ IoUtil.readToString(InputStream input, Charset charset);
readToByteArray
/** */ IoUtil.readToByteArray(InputStream input);
write
/** * Writes chars from a <code>String</code> to bytes on an * <code>OutputStream</code> using the specified character encoding. * <p> * This method uses {@link String#getBytes(String)}. * </p> * @param data the <code>String</code> to write, null ignored * @param output the <code>OutputStream</code> to write to * @param encoding the encoding to use, null means platform default * @throws NullPointerException if output is null * @throws IOException if an I/O error occurs */ IoUtil.write(String data, OutputStream output, Charset encoding);