com.evanmclean.evlib.io
Class CSFileReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by com.evanmclean.evlib.io.CSFileReader
All Implemented Interfaces:
Closeable, Readable
Direct Known Subclasses:
UTF8FileReader

public class CSFileReader
extends InputStreamReader

Create a file reader which expects the file to be encoded with the specified character set.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
CSFileReader(File file, Charset cs)
           
CSFileReader(File file, CharsetDecoder dec)
           
CSFileReader(FileDescriptor fd, Charset cs)
           
CSFileReader(FileDescriptor fd, CharsetDecoder dec)
           
CSFileReader(FileDescriptor fd, String charset_name)
           
CSFileReader(File file, String charset_name)
           
CSFileReader(String name, Charset cs)
           
CSFileReader(String name, CharsetDecoder dec)
           
CSFileReader(String name, String charset_name)
           
 
Method Summary
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSFileReader

public CSFileReader(File file,
                    Charset cs)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileReader

public CSFileReader(File file,
                    CharsetDecoder dec)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileReader

public CSFileReader(File file,
                    String charset_name)
             throws FileNotFoundException,
                    UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

CSFileReader

public CSFileReader(FileDescriptor fd,
                    Charset cs)

CSFileReader

public CSFileReader(FileDescriptor fd,
                    CharsetDecoder dec)

CSFileReader

public CSFileReader(FileDescriptor fd,
                    String charset_name)
             throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

CSFileReader

public CSFileReader(String name,
                    Charset cs)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileReader

public CSFileReader(String name,
                    CharsetDecoder dec)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileReader

public CSFileReader(String name,
                    String charset_name)
             throws FileNotFoundException,
                    UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException