Example usage for java.io CharArrayReader close

List of usage examples for java.io CharArrayReader close

Introduction

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

Prototype

public void close() 

Source Link

Document

Closes the stream and releases any system resources associated with it.

Usage

From source file:Main.java

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

    char[] ch = { 'H', 'E', 'L', 'L', 'O' };

    CharArrayReader car = new CharArrayReader(ch);

    car.close();

    // read the character array stream
    System.out.println(car.read());

}