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)
-
SimpleReader(InputStream)
-
-
SimpleReader(Reader)
-
-
contents()
- Returns the entire contents (to EOF) of the input stream.
-
setReadSize(int)
- Set the number of characters that will be read at one time by
contents.
SimpleReader
public SimpleReader(Reader in)
SimpleReader
public SimpleReader(InputStream in)
contents
public String contents() throws IOException
- Returns the entire contents (to EOF) of the input stream.
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