mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
add additional methods and fields to class library
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user