de.schlichtherle.io
Class FileWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.OutputStreamWriter
          extended by de.schlichtherle.io.FileWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class FileWriter
extends OutputStreamWriter

A drop-in replacement for FileWriter which provides transparent write 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(), File.setLenient(boolean)

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
FileWriter(File file)
           
FileWriter(File file, boolean append)
           
FileWriter(FileDescriptor fd)
           
FileWriter(String path)
           
FileWriter(String path, boolean append)
           
 
Method Summary
 
Methods inherited from class java.io.OutputStreamWriter
close, flush, getEncoding, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWriter

public FileWriter(String path)
           throws IOException
Throws:
IOException

FileWriter

public FileWriter(String path,
                  boolean append)
           throws IOException
Throws:
IOException

FileWriter

public FileWriter(File file)
           throws IOException
Throws:
IOException

FileWriter

public FileWriter(File file,
                  boolean append)
           throws IOException
Throws:
IOException

FileWriter

public FileWriter(FileDescriptor fd)