title: Apache Tika - read chunk at a time from a file?
body: <p>Is there any way to read chunk at a time (instead of reading the entire file) from a file using Tika API? </p>
  
  <p>following is my code. As you can see I am reading the entire file at once. I would like to read chunk at a time and create a text file the content.</p>
  
  <pre><code>InputStream stream = new FileInputStream(file);
  Parser p = new AutoDetectParser();
  Metadata meta =new Metadata();
  WriteOutContentHandler handler = new WriteOutContnetHandler(-1);
  ParseContext parse = new ParseContext();
  
  ....
  p.parse(stream,handler,meta, context);
  ...
  
  String content = handler.toString();
  </code></pre>