Updated Stream.java and StreamObject.java for isDone