Example #1
0
  @Override
  public InputStream getInputStream() {

    final String remoteUrl = getProperty(url);
    if (StringUtils.isNotBlank(remoteUrl)) {

      return DownloadHelper.getInputStream(remoteUrl);
    }

    return null;
  }
Example #2
0
  @Export
  @Override
  public GraphObject getSearchContext(final String searchTerm, final int contextLength) {

    final String text = getProperty(extractedContent);
    if (text != null) {

      return DownloadHelper.getContextObject(searchTerm, text, contextLength);
    }

    return null;
  }