com.evanmclean.evlib.io
Class CSFileReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
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.)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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