It is the number of available bytes to read in the buffer. It's a variable in ByteArrayInputStream which ByteArrayWrapper extends (see http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/io/ByteArrayInputStream.java#106). In this case, it is the same as the byte array size.