Package org.marketcetera.util.unicode
Class UnicodeFileReader
- java.lang.Object
-
- java.io.Reader
-
- org.marketcetera.util.unicode.UnicodeInputStreamReader
-
- org.marketcetera.util.unicode.UnicodeFileReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class UnicodeFileReader extends UnicodeInputStreamReader
AUnicodeInputStreamReaderwhich gets its input from a file. All constructors pass-thru to aUnicodeInputStreamReaderconstructor anInputStreamthat is built using aFileInputStreamconstructor.- Since:
- 0.6.0
- Version:
- $Id: UnicodeFileReader.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Constructor Summary
Constructors Constructor Description UnicodeFileReader(File file)Creates a new reader using the given file, and theUnicodeInputStreamReader(InputStream)andFileInputStream(File)constructors.UnicodeFileReader(FileDescriptor fd)Creates a new reader using the given file descriptor, and theUnicodeInputStreamReader(InputStream)andFileInputStream(FileDescriptor)constructors.UnicodeFileReader(FileDescriptor fd, DecodingStrategy decodingStrategy)Creates a new reader using the given file descriptor and decoding strategy, theUnicodeInputStreamReader(InputStream, DecodingStrategy)andFileInputStream(FileDescriptor)constructors.UnicodeFileReader(FileDescriptor fd, SignatureCharset requestedSignatureCharset)Creates a new reader using the given file descriptor and signature/charset, and theUnicodeInputStreamReader(InputStream, SignatureCharset)andFileInputStream(FileDescriptor)constructors.UnicodeFileReader(File file, DecodingStrategy decodingStrategy)Creates a new reader using the given file and decoding strategy, and theUnicodeInputStreamReader(InputStream, DecodingStrategy)andFileInputStream(File)constructors.UnicodeFileReader(File file, SignatureCharset requestedSignatureCharset)Creates a new reader using the given file and signature/charset, and theUnicodeInputStreamReader(InputStream, SignatureCharset)andFileInputStream(File)constructors.UnicodeFileReader(String fileName)Creates a new reader using the given file name, and theUnicodeInputStreamReader(InputStream)andFileInputStream(String)constructors.UnicodeFileReader(String fileName, DecodingStrategy decodingStrategy)Creates a new reader using the given file name and decoding strategy, and theUnicodeInputStreamReader(InputStream, DecodingStrategy)andFileInputStream(String)constructors.UnicodeFileReader(String fileName, SignatureCharset requestedSignatureCharset)Creates a new reader using the given file name and signature/charset, and theUnicodeInputStreamReader(InputStream, SignatureCharset)andFileInputStream(String)constructors.
-
Method Summary
-
Methods inherited from class org.marketcetera.util.unicode.UnicodeInputStreamReader
close, getDecodingStrategy, getRequestedSignatureCharset, getSignatureCharset, mark, markSupported, read, read, read, read, ready, skip
-
Methods inherited from class java.io.Reader
nullReader, reset, transferTo
-
-
-
-
Constructor Detail
-
UnicodeFileReader
public UnicodeFileReader(String fileName) throws FileNotFoundException
Creates a new reader using the given file name, and theUnicodeInputStreamReader(InputStream)andFileInputStream(String)constructors.- Parameters:
fileName- The file name.- Throws:
FileNotFoundException- Propagated from theFileInputStreamconstructor.
-
UnicodeFileReader
public UnicodeFileReader(String fileName, SignatureCharset requestedSignatureCharset) throws FileNotFoundException
Creates a new reader using the given file name and signature/charset, and theUnicodeInputStreamReader(InputStream, SignatureCharset)andFileInputStream(String)constructors.- Parameters:
fileName- The file name.requestedSignatureCharset- The signature/charset. It may be null to use the default JVM charset.- Throws:
FileNotFoundException- Propagated from theFileInputStreamconstructor.
-
UnicodeFileReader
public UnicodeFileReader(String fileName, DecodingStrategy decodingStrategy) throws FileNotFoundException
Creates a new reader using the given file name and decoding strategy, and theUnicodeInputStreamReader(InputStream, DecodingStrategy)andFileInputStream(String)constructors.- Parameters:
fileName- The file name.decodingStrategy- The decoding strategy. It may be null to use the default JVM charset.- Throws:
FileNotFoundException- Propagated from theFileInputStreamconstructor.
-
UnicodeFileReader
public UnicodeFileReader(File file) throws FileNotFoundException
Creates a new reader using the given file, and theUnicodeInputStreamReader(InputStream)andFileInputStream(File)constructors.- Parameters:
file- The file.- Throws:
FileNotFoundException- Propagated from theFileInputStreamconstructor.
-
UnicodeFileReader
public UnicodeFileReader(File file, SignatureCharset requestedSignatureCharset) throws FileNotFoundException
Creates a new reader using the given file and signature/charset, and theUnicodeInputStreamReader(InputStream, SignatureCharset)andFileInputStream(File)constructors.- Parameters:
file- The file.requestedSignatureCharset- The signature/charset. It may be null to use the default JVM charset.- Throws:
FileNotFoundException- Propagated from theFileInputStreamconstructor.
-
UnicodeFileReader
public UnicodeFileReader(File file, DecodingStrategy decodingStrategy) throws FileNotFoundException
Creates a new reader using the given file and decoding strategy, and theUnicodeInputStreamReader(InputStream, DecodingStrategy)andFileInputStream(File)constructors.- Parameters:
file- The file.decodingStrategy- The decoding strategy. It may be null to use the default JVM charset.- Throws:
FileNotFoundException- Propagated from theFileInputStreamconstructor.
-
UnicodeFileReader
public UnicodeFileReader(FileDescriptor fd)
Creates a new reader using the given file descriptor, and theUnicodeInputStreamReader(InputStream)andFileInputStream(FileDescriptor)constructors.- Parameters:
fd- The file descriptor.
-
UnicodeFileReader
public UnicodeFileReader(FileDescriptor fd, SignatureCharset requestedSignatureCharset)
Creates a new reader using the given file descriptor and signature/charset, and theUnicodeInputStreamReader(InputStream, SignatureCharset)andFileInputStream(FileDescriptor)constructors.- Parameters:
fd- The file descriptor.requestedSignatureCharset- The signature/charset. It may be null to use the default JVM charset.
-
UnicodeFileReader
public UnicodeFileReader(FileDescriptor fd, DecodingStrategy decodingStrategy)
Creates a new reader using the given file descriptor and decoding strategy, theUnicodeInputStreamReader(InputStream, DecodingStrategy)andFileInputStream(FileDescriptor)constructors.- Parameters:
fd- The file descriptor.decodingStrategy- The decoding strategy. It may be null to use the default JVM charset.
-
-