Package org.apache.tika.server
Interface InputStreamFactory
-
- All Known Implementing Classes:
DefaultInputStreamFactory
,URLEnabledInputStreamFactory
public interface InputStreamFactory
Interface to allow for custom/consistent creation of InputStreamThis factory is used statically in TikaResource. Make sure not to hold instance state in implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getInputSteam(InputStream is, javax.ws.rs.core.HttpHeaders httpHeaders)
InputStream
getInputSteam(InputStream is, Metadata metadata, javax.ws.rs.core.HttpHeaders httpHeaders)
-
-
-
Method Detail
-
getInputSteam
InputStream getInputSteam(InputStream is, javax.ws.rs.core.HttpHeaders httpHeaders) throws IOException
- Throws:
IOException
-
getInputSteam
InputStream getInputSteam(InputStream is, Metadata metadata, javax.ws.rs.core.HttpHeaders httpHeaders) throws IOException
- Throws:
IOException
-
-