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

I/O Streams implementation #19

Merged
merged 15 commits into from
Aug 26, 2016
Merged

Conversation

adityakalia
Copy link
Contributor

No description provided.

public int bytesLeft() {
int i = 0;
try {
i = is.available();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return is.available(); no need for the intermediate i variable.

try {
i = is.available();
return is.available();
} catch (IOException e) {
new RuntimeException(e);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw it?

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

Successfully merging this pull request may close these issues.

2 participants