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

does not always read all byte #9

Open
gawric opened this issue Oct 13, 2018 · 0 comments
Open

does not always read all byte #9

gawric opened this issue Oct 13, 2018 · 0 comments

Comments

@gawric
Copy link

gawric commented Oct 13, 2018

Hello
RAROScope does not always read all bytes from inputstream.availabes (java does not recommend to use)
need to fix a piece of code->
in RARFiles

public RARFile(InputStream stream) throws IOException {
this.stream = stream;

    this.available = this.stream.availabel

on

public RARFile(FileInputStream stream<--) throws IOException {
this.stream = stream;

    this.available = this.stream.getChannel().size()<---;

for Cyrillic readability
entry.setName(new String(name ));
on
entry.setName(new String(name , "CP866"));

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

1 participant