org.marketcetera.util.unicode
Class UnicodeFileReader

java.lang.Object
  extended by java.io.Reader
      extended by org.marketcetera.util.unicode.UnicodeInputStreamReader
          extended by org.marketcetera.util.unicode.UnicodeFileReader
All Implemented Interfaces:
Closeable, Readable

public class UnicodeFileReader
extends UnicodeInputStreamReader

A UnicodeInputStreamReader which gets its input from a file. All constructors pass-thru to a UnicodeInputStreamReader constructor an InputStream that is built using a FileInputStream constructor.

Since:
0.6.0
Version:
$Id: UnicodeFileReader.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
UnicodeFileReader(File file)
          Creates a new reader using the given file, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream) and FileInputStream.FileInputStream(File) constructors.
UnicodeFileReader(File file, DecodingStrategy decodingStrategy)
          Creates a new reader using the given file and decoding strategy, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, DecodingStrategy) and FileInputStream.FileInputStream(File) constructors.
UnicodeFileReader(FileDescriptor fd)
          Creates a new reader using the given file descriptor, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream) and FileInputStream.FileInputStream(FileDescriptor) constructors.
UnicodeFileReader(FileDescriptor fd, DecodingStrategy decodingStrategy)
          Creates a new reader using the given file descriptor and decoding strategy, the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, DecodingStrategy) and FileInputStream.FileInputStream(FileDescriptor) constructors.
UnicodeFileReader(FileDescriptor fd, SignatureCharset requestedSignatureCharset)
          Creates a new reader using the given file descriptor and signature/charset, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, SignatureCharset) and FileInputStream.FileInputStream(FileDescriptor) constructors.
UnicodeFileReader(File file, SignatureCharset requestedSignatureCharset)
          Creates a new reader using the given file and signature/charset, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, SignatureCharset) and FileInputStream.FileInputStream(File) constructors.
UnicodeFileReader(String fileName)
          Creates a new reader using the given file name, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream) and FileInputStream.FileInputStream(String) constructors.
UnicodeFileReader(String fileName, DecodingStrategy decodingStrategy)
          Creates a new reader using the given file name and decoding strategy, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, DecodingStrategy) and FileInputStream.FileInputStream(String) constructors.
UnicodeFileReader(String fileName, SignatureCharset requestedSignatureCharset)
          Creates a new reader using the given file name and signature/charset, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, SignatureCharset) and FileInputStream.FileInputStream(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
reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeFileReader

public UnicodeFileReader(String fileName)
                  throws FileNotFoundException
Creates a new reader using the given file name, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream) and FileInputStream.FileInputStream(String) constructors.

Parameters:
fileName - The file name.
Throws:
FileNotFoundException - Propagated from the FileInputStream constructor.

UnicodeFileReader

public UnicodeFileReader(String fileName,
                         SignatureCharset requestedSignatureCharset)
                  throws FileNotFoundException
Creates a new reader using the given file name and signature/charset, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, SignatureCharset) and FileInputStream.FileInputStream(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 the FileInputStream constructor.

UnicodeFileReader

public UnicodeFileReader(String fileName,
                         DecodingStrategy decodingStrategy)
                  throws FileNotFoundException
Creates a new reader using the given file name and decoding strategy, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, DecodingStrategy) and FileInputStream.FileInputStream(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 the FileInputStream constructor.

UnicodeFileReader

public UnicodeFileReader(File file)
                  throws FileNotFoundException
Creates a new reader using the given file, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream) and FileInputStream.FileInputStream(File) constructors.

Parameters:
file - The file.
Throws:
FileNotFoundException - Propagated from the FileInputStream constructor.

UnicodeFileReader

public UnicodeFileReader(File file,
                         SignatureCharset requestedSignatureCharset)
                  throws FileNotFoundException
Creates a new reader using the given file and signature/charset, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, SignatureCharset) and FileInputStream.FileInputStream(File) constructors.

Parameters:
file - The file.
requestedSignatureCharset - The signature/charset. It may be null to use the default JVM charset.
Throws:
FileNotFoundException - Propagated from the FileInputStream constructor.

UnicodeFileReader

public UnicodeFileReader(File file,
                         DecodingStrategy decodingStrategy)
                  throws FileNotFoundException
Creates a new reader using the given file and decoding strategy, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, DecodingStrategy) and FileInputStream.FileInputStream(File) constructors.

Parameters:
file - The file.
decodingStrategy - The decoding strategy. It may be null to use the default JVM charset.
Throws:
FileNotFoundException - Propagated from the FileInputStream constructor.

UnicodeFileReader

public UnicodeFileReader(FileDescriptor fd)
Creates a new reader using the given file descriptor, and the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream) and FileInputStream.FileInputStream(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 the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, SignatureCharset) and FileInputStream.FileInputStream(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, the UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream, DecodingStrategy) and FileInputStream.FileInputStream(FileDescriptor) constructors.

Parameters:
fd - The file descriptor.
decodingStrategy - The decoding strategy. It may be null to use the default JVM charset.


Copyright © 2012. All Rights Reserved.