Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.io.xfile
Interface XFileDeleteI  view XFileDeleteI download XFileDeleteI.java

All Superinterfaces:
XFileAccessorI

public interface XFileDeleteI
extends XFileAccessorI

This interface defines all the methods to be implemented by a delete utility for a specific file protocol. Every file protocol must have a delete utility class.


Method Summary
 boolean deleteDirectory(java.lang.String sDir)
          Deletes the directory specified.
 boolean deleteDirectory(java.lang.String sDir, boolean bDeleteContent)
          Deletes the directory specified.
 boolean deleteFile(java.lang.String sFile)
          Deletes the file specified.
 boolean deleteFile(java.lang.String sFile, boolean bRemoveParentIfEmpty)
          Deletes the file specified.
 
Methods inherited from interface com.flexstor.common.io.xfile.XFileAccessorI
connect, disconnect
 

Method Detail

deleteDirectory

public boolean deleteDirectory(java.lang.String sDir)
Deletes the directory specified. This operation will delete any files and subdirectories.


deleteDirectory

public boolean deleteDirectory(java.lang.String sDir,
                               boolean bDeleteContent)
Deletes the directory specified. If the second argument is false, it will remove the directory only if it is empty; if true, it will delete the directory regardless of its content.


deleteFile

public boolean deleteFile(java.lang.String sFile)
Deletes the file specified. If the file is the only one left, its directory will also be removed.


deleteFile

public boolean deleteFile(java.lang.String sFile,
                          boolean bRemoveParentIfEmpty)
Deletes the file specified. If the second argument is true, it will remove the directory if it is empty; if false, it will not remove the directory even if it is empty.