public InputContent parseInputStream(InputStream inputStream, Boolean strict) throws IOException, ReadException { Description description = deserialize(new InputStreamReader(inputStream), strict); Content content = complexify(description); return InputContent.create(content, description.getType()); }
@Override public boolean equals(Object obj) { if (obj instanceof ConsumedContent) { ConsumedContent target = (ConsumedContent) obj; return consumption.equals(target.consumption) && content.equals(target.content) && count.equals(target.count); } return false; }