Hi, tian DefaultTsFileInput is a class to implement TsFileInput interface. DefaultTsFileInput's method read actually change the position of itself because it uses java.io.FileChannel, and we can use a "position" method to change its position back. But I'm also confusing that why can't change the position of TsFileInput or modify this TsFileInput.
Best, Boris zhu On Mon, Sep 9, 2019 at 10:55 PM Yuan Tian <[email protected]> wrote: > Hi, > > While implementing one read method(shown in the following) in TsFileInput > interface, I don’t know whether to modify the position of TsFileInput. > > /** > * read an array of byte from the Input. > * > * @param b -array of byte > * @param off -offset of the Input > * @param len -length > */ > int read(byte[] b, int off, int len) throws IOException; > > > I think this method should not modify this TsFileInput and it should be > specified in the comments. > > Best, > -------------- > Yuan Tian > School of Software, Tsinghua University > > 田原 > 清华大学 软件学院 > >
