Java DataInputStream class method readFully is used for reading the bytes from the stream into the to the byte array which is passed as the parameter. After reading the bytes from the stream, does readFully increment the position of the stream ?
Java DataInputStream class method readFully is used for reading the bytes from the stream
Share
Yes.
I cannot see where this is explicitly stated in the
DataInputStreamjavadocs, but that’s the way that all input streams and readers work.If
DataInputStream.readFully()didn’t behave this way:DataInputStreamis a filter for an arbitraryInputStreaminstances and these don’t support seeking, and