Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteFileInputStream#skip returns wrong value #209

Closed
lexx911 opened this issue Aug 17, 2015 · 2 comments
Closed

RemoteFileInputStream#skip returns wrong value #209

lexx911 opened this issue Aug 17, 2015 · 2 comments

Comments

@lexx911
Copy link

lexx911 commented Aug 17, 2015

net.schmizz.sshj.sftp.RemoteFile.RemoteFileInputStream.skip(long n) returns the new file pointer position but InputStream.skip() should return the actual number of bytes skipped instead.

Some stream implementations like Apache Compress GzipInputStream check the return value and throw an IOException if used on an RemoteFileInputStream.

@dkocher
Copy link
Contributor

dkocher commented Aug 17, 2015

Attempted fix in #210.

@hierynomus
Copy link
Owner

#210 is merged, so closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants