All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.jhu.hlt.concrete.ingesters.base.stream.IteratorBasedStreamIngester Maven / Gradle / Ivy

/*
 * Copyright 2012-2015 Johns Hopkins University HLTCOE. All rights reserved.
 * See LICENSE in the project root directory.
 */
package edu.jhu.hlt.concrete.ingesters.base.stream;

import java.io.InputStream;
import java.util.Iterator;

import edu.jhu.hlt.concrete.Communication;
import edu.jhu.hlt.concrete.ingesters.base.IngestException;
import edu.jhu.hlt.concrete.ingesters.base.Ingester;

/**
 * Interface for Concrete ingesters that process documents from an {@link InputStream}.
 */
public interface IteratorBasedStreamIngester extends Ingester {
  /**
   * @return an {@link Iterator} of Communication objects
   * @throws IngestException if there is an exception during the conversion (for example,
   * access to the stream is halted)
   */
  public Iterator iterator() throws IngestException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy