Interface InputStreamFactory


  • public interface InputStreamFactory

    A factory which returns a fresh InputStream for the same resource each time.

    This is typically desired where it is easier / quicker / simpler to fetch a fresh InputStream to re-read a given resource, rather than do any kind of buffering.

    It is typically used with TikaInputStream.get(InputStreamFactory) when combined with a Parser which needs to read the resource's stream multiple times when processing.