/** * * @param charset the charset used to convert the bytes * @param consume whether to consume the content * @return a String with the content of this {@link DataInfo} */ public String asString(String charset, boolean consume) { return asString(Charset.forName(charset), consume); }