Example usage for java.io CharArrayReader ready

List of usage examples for java.io CharArrayReader ready

Introduction

In this page you can find the example usage for java.io CharArrayReader ready.

Prototype

public boolean ready() throws IOException 

Source Link

Document

Tells whether this stream is ready to be read.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {

    char[] ch = { 'A', 'B', 'C', 'D', 'E' };

    CharArrayReader car = new CharArrayReader(ch);

    // test whether the stream is ready to be read
    boolean isReady = car.ready();

    // print//from w ww  .ja  v a 2s.c o  m
    System.out.println("Ready ? " + isReady);

}