public class EncodingFileReader
extends java.io.InputStreamReader
FileReader
but allows for the specification of input encoding.| Constructor and Description |
|---|
EncodingFileReader(java.io.File file)
Creates a new EncodingFileReader, given the File
to read from, and using default of utf-8.
|
EncodingFileReader(java.io.FileDescriptor fd)
Creates a new FileReader, given the
FileDescriptor to read from.
|
EncodingFileReader(java.io.File file,
java.lang.String encoding)
Creates a new FileReader, given the File
to read from and encoding.
|
EncodingFileReader(java.lang.String fileName)
Creates a new EncodingFileReader, given the name of the
file to read from.
|
EncodingFileReader(java.lang.String fileName,
java.lang.String encoding)
Creates a new EncodingFileReader, given the name of the
file to read from and an encoding
|
public EncodingFileReader(java.lang.String fileName)
throws java.io.UnsupportedEncodingException,
java.io.FileNotFoundException
fileName - the name of the file to read fromjava.io.FileNotFoundException - if the named file does not
exist, is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.java.io.UnsupportedEncodingException - if the encoding does not exist.public EncodingFileReader(java.lang.String fileName,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException,
java.io.FileNotFoundException
fileName - the name of the file to read fromencoding - String specifying the encoding to be usedjava.io.UnsupportedEncodingException - if the encoding does not exist.java.io.FileNotFoundException - if the named file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.public EncodingFileReader(java.io.File file)
throws java.io.UnsupportedEncodingException,
java.io.FileNotFoundException
file - the File to read fromjava.io.FileNotFoundException - if the file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.java.io.UnsupportedEncodingException - if the encoding does not exist.public EncodingFileReader(java.io.File file,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException,
java.io.FileNotFoundException
file - the File to read fromencoding - String specifying the encoding to be usedjava.io.FileNotFoundException - if the file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.java.io.UnsupportedEncodingException - if the encoding does not exist.public EncodingFileReader(java.io.FileDescriptor fd)
fd - the FileDescriptor to read from