TrueZIP File* 7.0

de.schlichtherle.truezip.file
Class TFileWriter

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

@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
@Immutable
public final class TFileWriter
extends OutputStreamWriter

A replacement for the class FileWriter for writing plain old files or entries in an archive file. Note that applications cannot write archive files directly using this class - just their entries.

Author:
Christian Schlichtherle
See Also:
TFile.setLenient(boolean), TFileReader

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TFileWriter(TFile file)
           
TFileWriter(TFile file, boolean append)
           
TFileWriter(TFile file, boolean append, CharsetEncoder encoder)
           
 
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, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFileWriter

public TFileWriter(TFile file)
            throws FileNotFoundException
Throws:
FileNotFoundException

TFileWriter

public TFileWriter(TFile file,
                   boolean append)
            throws FileNotFoundException
Throws:
FileNotFoundException

TFileWriter

public TFileWriter(TFile file,
                   boolean append,
                   CharsetEncoder encoder)
            throws FileNotFoundException
Throws:
FileNotFoundException

TrueZIP File* 7.0

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.