/** Construct a reader for a file. */ public DataFileReader(SeekableInput sin, DatumReader<D> reader) throws IOException { super(reader); this.sin = new SeekableInputStream(sin); initialize(this.sin); blockFinished(); }
/** Construct a reader for a file. */ protected DataFileReader(SeekableInput sin, DatumReader<D> reader, boolean closeOnError) throws IOException { super(reader); try { this.sin = new SeekableInputStream(sin); initialize(this.sin); blockFinished(); } catch(final Throwable e) { if (closeOnError) { IOUtils.closeQuietly( sin ); } throw e; } }
/** Construct a reader for a file. */ public DataFileReader(SeekableInput sin, DatumReader<D> reader) throws IOException { super(reader); this.sin = new SeekableInputStream(sin); initialize(this.sin); blockFinished(); }
/** Construct a reader for a file. */ public DataFileReader(SeekableInput sin, DatumReader<D> reader) throws IOException { super(reader); this.sin = new SeekableInputStream(sin); initialize(this.sin); blockFinished(); }
/** Construct a reader for a file. */ public DataFileReader(SeekableInput sin, DatumReader<D> reader) throws IOException { super(reader); this.sin = new SeekableInputStream(sin); initialize(this.sin); blockFinished(); }