Java BufferedInputStream Class Methods

Java BufferedInputStream class has the following built-in methods.

Method Description
available() It is used to return the number of unread bytes available from an input stream without blocking by the next calling of a method for this InputStream.
close() It is used to close this BufferedInputStream and free all other system resources linked with this stream.
mark() It is used to set the limit of bytes to be read before the given set limit or marked position.
markSupported() It is used to check whether this BufferedInputStream supports mark() and reset() method or not.
read() It is used to read the next bytes of data from the BufferedInputStream.
reset() It is used to reset this BufferedInputStream or in other words, we can say it reset the stream position to the position where mark() method invoked last on stream.
skip() It is used to skip the given number of bytes of content (n_bytes) from this BufferedInputStream.



Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.