MDi JLib
1.7.4

com.microdeveloper.util.io
Class FileIn

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by com.microdeveloper.util.io.FileIn
All Implemented Interfaces:
Closeable, Readable

public final class FileIn
extends BufferedReader

FileIn extends BufferedReader and adds only a convenient constructor for reading in file data.

Example usage of FileIn:

 

FileIn in = new FileIn("file.txt"); boolean done = false ; while ( ! done ) { String s = in.readLine(); if ( s == null ) { done = true ; } else { System.out.println( s ); } } in.close();

Since:
1.7.4
Version:
1.0
Author:
MicroDeveloper, Inc.

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
FileIn(String fileName)
           
 
Method Summary
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileIn

public FileIn(String fileName)
       throws FileNotFoundException
Throws:
FileNotFoundException

MDi JLib
1.7.4

Copyright©2001-2007 MicroDeveloper, Inc. All Rights Reserved.