Open In App

Java.io.PushbackReader Class in Java

java.io.PushbackReader is a character-stream reader class that allows characters to be pushed back into the Stream.



Declaration:

public class PushbackReader
   extends FilterReader

Constructors :



Methods of PushbackReader class :

Is stream1 ready : true
Is stream2 ready : true

We have used skip() method in 1 : 

Use of read() in 1 : GesoGe
Using read() in 2 : 1

Is mark supported in 1 : false
USe of unread() : F
mark not supported in 1

Article Tags :