All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdsu.io.SimpleReader

java.lang.Object
   |
   +----java.io.Reader
           |
           +----java.io.FilterReader
                   |
                   +----sdsu.io.SimpleReader

public class SimpleReader
extends FilterReader
implements Cloneable
Allows you to read to the EOF with one method. Useful in reading the entire contents of a file.

Version:
1 25 August 1997
Author:
Roger Whitney (whitney@cs.sdsu.edu)

Constructor Index

 o SimpleReader(InputStream)
 o SimpleReader(Reader)

Method Index

 o contents()
Returns the entire contents (to EOF) of the input stream.
 o setReadSize(int)
Set the number of characters that will be read at one time by contents.

Constructors

 o SimpleReader
 public SimpleReader(Reader in)
 o SimpleReader
 public SimpleReader(InputStream in)

Methods

 o contents
 public String contents() throws IOException
Returns the entire contents (to EOF) of the input stream.

 o setReadSize
 public void setReadSize(int readSize)
Set the number of characters that will be read at one time by contents. Larger values reduce the number of reads required. Default value is 512.


All Packages  Class Hierarchy  This Package  Previous  Next  Index