It can be from reading an empty file. Is the file you are trying to read empty?

---
A. Soroka
The University of Virginia Library

> On Jul 14, 2016, at 11:25 AM, tina sani <tinamadri...@gmail.com> wrote:
> 
> I am getting this type of error/exception: Pre Mature end of file". Is this
> coming from reading a file which is empty or something else?
> I have written this code
> InputStream in = FileManager.get().open( somefile
> if (in == null) {
> throw new IllegalArgumentException( "File: " + file + "  no file exist");
> }
> model.read(in,""); );

Reply via email to