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.
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream() |
InputStream getInputStream() throws IOException
IOException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.