Ejemplo n.º 1
0
  @Override
  public InputStream getInputStream() {

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

      return DownloadHelper.getInputStream(remoteUrl);
    }

    return null;
  }
Ejemplo n.º 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;
  }