Skip to content
Snippets Groups Projects
Commit fe88946f authored by Brian Carrier's avatar Brian Carrier
Browse files

Added available method to stream

parent ef857583
No related branches found
No related tags found
No related merge requests found
......@@ -110,4 +110,12 @@ public int read(byte[] b, int off, int len) throws IOException {
}
}
@Override
public int available() throws IOException {
if (position > length) {
return 0;
}
return (int)(length - position);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment