de.schlichtherle.io
Class FileReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by de.schlichtherle.io.FileReader
All Implemented Interfaces:
Closeable, Readable

public class FileReader
extends InputStreamReader

A drop-in replacement for FileReader which provides transparent read access to archive entries as if they were (virtual) files. All file system operations in this class are virtually atomic.

Since:
TrueZIP 6.4
Version:
TrueZIP 6.7
Author:
Christian Schlichtherle
See Also:
Using Archive Entry Streams, FileBusyException, File.cat(java.io.InputStream, java.io.OutputStream), File.umount(), File.update()

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
FileReader(File file)
           
FileReader(FileDescriptor fd)
           
FileReader(String path)
           
 
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

FileReader

public FileReader(String path)
           throws FileNotFoundException
Throws:
FileNotFoundException

FileReader

public FileReader(File file)
           throws FileNotFoundException
Throws:
FileNotFoundException

FileReader

public FileReader(FileDescriptor fd)