Beispiel #1
0
  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());
  }
Beispiel #2
0
  @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;
  }