add additional methods and fields to class library

This commit is contained in:
Joel Dice
2008-03-20 18:40:18 -06:00
parent 8e1ec5794f
commit 7dd9b96717
6 changed files with 57 additions and 10 deletions

View File

@ -21,6 +21,10 @@ public class ByteArrayInputStream extends InputStream {
this.limit = offset + length;
}
public ByteArrayInputStream(byte[] array) {
this(array, 0, array.length);
}
public int read() {
if (position < limit) {
return array[position++] & 0xff;