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

readAllBytes #115

Open
azeroth2b opened this issue Feb 24, 2019 · 0 comments
Open

readAllBytes #115

azeroth2b opened this issue Feb 24, 2019 · 0 comments

Comments

@azeroth2b
Copy link

byte[] decompressed = gunzipStream.readAllBytes();

ReadAllBytes is introduced in Java9, Since you're already inluding Apache Commons IO, I think you can replace it with the following and avoid the Java9 Dependency.
byte[] decompressed = IOUtils.toByteArray(gunzipStream);

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