submarine.connectors
Class ArchivableFile

java.lang.Object
  |
  +--java.io.File
        |
        +--submarine.connectors.ArchivableFile
All Implemented Interfaces:
Archivable, java.lang.Comparable, Finalizable, java.io.Serializable

public class ArchivableFile
extends java.io.File
implements Archivable, Finalizable

See Also:
Serialized Form

Field Summary
private  boolean shouldDelete
           
 
Fields inherited from class java.io.File
counter, fs, path, pathSeparator, pathSeparatorChar, prefixLength, separator, separatorChar, serialVersionUID, tmpdir, tmpFileLock
 
Constructor Summary
ArchivableFile(java.io.File as)
           
ArchivableFile(java.io.File as, boolean sd)
           
 
Method Summary
 void archive(java.io.OutputStream out)
          Procède à l'archivage de l'objet dans le flux.
 void finalize()
          Appelée sur une instance de PoolingFunction ou de WritingFunction avant la libération de celle-ci.
 
Methods inherited from class java.io.File
, canRead, canWrite, checkAndCreate, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, generateFile, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, getPrefixLength, getTempDir, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, readObject, renameTo, setLastModified, setReadOnly, toString, toURL, writeObject
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

shouldDelete

private boolean shouldDelete
Constructor Detail

ArchivableFile

public ArchivableFile(java.io.File as)

ArchivableFile

public ArchivableFile(java.io.File as,
                      boolean sd)
Method Detail

archive

public void archive(java.io.OutputStream out)
             throws java.lang.Exception
Description copied from interface: Archivable
Procède à l'archivage de l'objet dans le flux. Le programme appelant doit fournir un flux valide et doit se charger de flusher et fermer le flux. Ces actions ne sont pas du resort de cette implémentation.
Specified by:
archive in interface Archivable
Following copied from interface: submarine.core.Archivable
Parameters:
out - Le flux dans lequel l'objet doit s'écrire.
Throws:
java.lang.Exception -  
See Also:
OutputStream

finalize

public void finalize()
Description copied from interface: Finalizable
Appelée sur une instance de PoolingFunction ou de WritingFunction avant la libération de celle-ci.
Specified by:
finalize in interface Finalizable
Overrides:
finalize in class java.lang.Object

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.