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



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© some rights reserved.