RE: Re-using a TikaStream

2021-02-22 Thread Peter Kronenberg
Oh ok. I didn’t realize I needed to write my own class to implement it. I was looking for some sort of existing framework. What is the purpose of the 2 InputStreamFactory classes: I was re-reading some emails with Nick Burch back around Dec 22-23 and maybe I mis-understood him, but it sounds

Re: Re-using a TikaStream

2021-02-22 Thread Luís Filipe Nassif
Something like: class MyInputStreamFactory implements InputStreamFactory{ private File file; public MyInputStreamFactory(File file){ this.file = file; } public InputStream getInputStream(){ return new FileInputStream(file); } } in your client code: Parser

RE: Re-using a TikaStream

2021-02-22 Thread Peter Kronenberg
I sent this question late on Friday. Sending it again. Can you provide a little more information how out to use the InputStreamFactory? From: Peter Kronenberg Sent: Friday, February 19, 2021 5:10 PM To: user@tika.apache.org; lfcnas...@gmail.com Subject: RE: Re-using a TikaStream This email