diff --git a/.classpath b/.classpath index bcf7cf1..1c1c2f0 100644 --- a/.classpath +++ b/.classpath @@ -14,11 +14,7 @@ - - - - - + diff --git a/javaDoc/allclasses-frame.html b/javaDoc/allclasses-frame.html index 7d12f20..6d99829 100644 --- a/javaDoc/allclasses-frame.html +++ b/javaDoc/allclasses-frame.html @@ -2,9 +2,9 @@ - + All Classes - + @@ -18,11 +18,13 @@
  • CheckPanel
  • GUIToolBox
  • Siba
  • +
  • SibaBackupSourceMissingException
  • +
  • SibaBackupSourceNotDirectoryException
  • +
  • SibaBackupTargetMissingException
  • SibaCLI
  • SibaException
  • SibaGUI
  • SibaManager
  • -
  • SibaNullException
  • SourceDirectorySelector
  • TargetDirectorySelector
  • diff --git a/javaDoc/allclasses-noframe.html b/javaDoc/allclasses-noframe.html index c9b414f..fc2ad99 100644 --- a/javaDoc/allclasses-noframe.html +++ b/javaDoc/allclasses-noframe.html @@ -2,9 +2,9 @@ - + All Classes - + @@ -18,11 +18,13 @@
  • CheckPanel
  • GUIToolBox
  • Siba
  • +
  • SibaBackupSourceMissingException
  • +
  • SibaBackupSourceNotDirectoryException
  • +
  • SibaBackupTargetMissingException
  • SibaCLI
  • SibaException
  • SibaGUI
  • SibaManager
  • -
  • SibaNullException
  • SourceDirectorySelector
  • TargetDirectorySelector
  • diff --git a/javaDoc/constant-values.html b/javaDoc/constant-values.html index e22f633..dce8a0a 100644 --- a/javaDoc/constant-values.html +++ b/javaDoc/constant-values.html @@ -2,9 +2,9 @@ - + Constant Field Values - + diff --git a/javaDoc/deprecated-list.html b/javaDoc/deprecated-list.html index 69b3fd2..7a9f71f 100644 --- a/javaDoc/deprecated-list.html +++ b/javaDoc/deprecated-list.html @@ -2,9 +2,9 @@ - + Deprecated List - + diff --git a/javaDoc/help-doc.html b/javaDoc/help-doc.html index 6c22cd5..a8d1066 100644 --- a/javaDoc/help-doc.html +++ b/javaDoc/help-doc.html @@ -2,9 +2,9 @@ - + API Help - + diff --git a/javaDoc/index-files/index-1.html b/javaDoc/index-files/index-1.html index 60100ce..ff0a905 100644 --- a/javaDoc/index-files/index-1.html +++ b/javaDoc/index-files/index-1.html @@ -2,9 +2,9 @@ - + A-Index - + @@ -78,7 +78,7 @@
     
    AboutDialog() - Constructor for class org.dclermonte.siba.gui.AboutDialog
    -
    Create the dialog.
    +
    This is the constructor for the dialog.
    approveSelection() - Method in class org.dclermonte.siba.gui.CheckDirectorySelector
     
    diff --git a/javaDoc/index-files/index-10.html b/javaDoc/index-files/index-10.html index 299f4e8..ab80b5d 100644 --- a/javaDoc/index-files/index-10.html +++ b/javaDoc/index-files/index-10.html @@ -2,9 +2,9 @@ - + R-Index - + @@ -76,11 +76,11 @@
    run(String[]) - Static method in class org.dclermonte.siba.cli.SibaCLI
    -
    Launcher for CLI
    +
    This method launch CLI.
    run() - Static method in class org.dclermonte.siba.gui.SibaGUI
    -
    Launcher for GUI
    +
    This method launch the GUI.
    A B C D F G H M O R S T U  diff --git a/javaDoc/index-files/index-11.html b/javaDoc/index-files/index-11.html index 8d57c99..e9b6290 100644 --- a/javaDoc/index-files/index-11.html +++ b/javaDoc/index-files/index-11.html @@ -2,9 +2,9 @@ - + S-Index - + @@ -102,31 +102,55 @@
     
    Siba() - Constructor for class org.dclermonte.siba.Siba
     
    +
    SibaBackupSourceMissingException - Exception in org.dclermonte.siba
    +
     
    +
    SibaBackupSourceMissingException() - Constructor for exception org.dclermonte.siba.SibaBackupSourceMissingException
    +
     
    +
    SibaBackupSourceMissingException(String) - Constructor for exception org.dclermonte.siba.SibaBackupSourceMissingException
    +
     
    +
    SibaBackupSourceMissingException(String, Throwable) - Constructor for exception org.dclermonte.siba.SibaBackupSourceMissingException
    +
     
    +
    SibaBackupSourceNotDirectoryException - Exception in org.dclermonte.siba
    +
     
    +
    SibaBackupSourceNotDirectoryException() - Constructor for exception org.dclermonte.siba.SibaBackupSourceNotDirectoryException
    +
     
    +
    SibaBackupSourceNotDirectoryException(String) - Constructor for exception org.dclermonte.siba.SibaBackupSourceNotDirectoryException
    +
     
    +
    SibaBackupSourceNotDirectoryException(String, Throwable) - Constructor for exception org.dclermonte.siba.SibaBackupSourceNotDirectoryException
    +
     
    +
    SibaBackupTargetMissingException - Exception in org.dclermonte.siba
    +
     
    +
    SibaBackupTargetMissingException() - Constructor for exception org.dclermonte.siba.SibaBackupTargetMissingException
    +
     
    +
    SibaBackupTargetMissingException(String) - Constructor for exception org.dclermonte.siba.SibaBackupTargetMissingException
    +
     
    +
    SibaBackupTargetMissingException(String, Throwable) - Constructor for exception org.dclermonte.siba.SibaBackupTargetMissingException
    +
     
    SibaCLI - Class in org.dclermonte.siba.cli
    -
    CLI = the Command Line Interface
    +
    This class CLI is for use from Command Line Interface.
    SibaCLI() - Constructor for class org.dclermonte.siba.cli.SibaCLI
     
    -
    SibaException - Class in org.dclermonte.siba
    +
    SibaException - Exception in org.dclermonte.siba
    The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
    -
    SibaException() - Constructor for class org.dclermonte.siba.SibaException
    +
    SibaException() - Constructor for exception org.dclermonte.siba.SibaException
    Constructs a new exception with null as its detail message.
    -
    SibaException(String) - Constructor for class org.dclermonte.siba.SibaException
    +
    SibaException(String) - Constructor for exception org.dclermonte.siba.SibaException
    Constructs a new exception with the specified detail message.
    -
    SibaException(String, Throwable) - Constructor for class org.dclermonte.siba.SibaException
    +
    SibaException(String, Throwable) - Constructor for exception org.dclermonte.siba.SibaException
    Constructs a new exception with the specified detail message and cause.
    -
    SibaException(Throwable) - Constructor for class org.dclermonte.siba.SibaException
    +
    SibaException(Throwable) - Constructor for exception org.dclermonte.siba.SibaException
    Constructs a new exception with the specified cause and a detail message of (cause==null ?
    @@ -137,7 +161,7 @@
    SibaGUI() - Constructor for class org.dclermonte.siba.gui.SibaGUI
    -
    Create the application.
    +
    This is the constructor of this application.
    SibaManager - Class in org.dclermonte.siba.model
    @@ -145,12 +169,6 @@
    SibaManager() - Constructor for class org.dclermonte.siba.model.SibaManager
     
    -
    SibaNullException - Class in org.dclermonte.siba
    -
     
    -
    SibaNullException() - Constructor for class org.dclermonte.siba.SibaNullException
    -
     
    -
    SibaNullException(String) - Constructor for class org.dclermonte.siba.SibaNullException
    -
     
    SourceDirectorySelector - Class in org.dclermonte.siba.gui
     
    SourceDirectorySelector(File) - Constructor for class org.dclermonte.siba.gui.SourceDirectorySelector
    diff --git a/javaDoc/index-files/index-12.html b/javaDoc/index-files/index-12.html index dfe0c24..77174fa 100644 --- a/javaDoc/index-files/index-12.html +++ b/javaDoc/index-files/index-12.html @@ -2,9 +2,9 @@ - + T-Index - + diff --git a/javaDoc/index-files/index-13.html b/javaDoc/index-files/index-13.html index 92f8292..3628a09 100644 --- a/javaDoc/index-files/index-13.html +++ b/javaDoc/index-files/index-13.html @@ -2,9 +2,9 @@ - + U-Index - + @@ -75,7 +75,9 @@

    U

    updateLanguage(Locale) - Method in class org.dclermonte.siba.gui.SibaGUI
    -
     
    +
    +
    This method set the local language.
    +
    A B C D F G H M O R S T U  diff --git a/javaDoc/index-files/index-2.html b/javaDoc/index-files/index-2.html index e62a796..95bc044 100644 --- a/javaDoc/index-files/index-2.html +++ b/javaDoc/index-files/index-2.html @@ -2,9 +2,9 @@ - + B-Index - + @@ -76,19 +76,19 @@
    backup(File, File) - Static method in class org.dclermonte.siba.cli.SibaCLI
    -
    Call for Backup from CLI
    +
    This method is called for Backup from CLI.
    backup(File, File) - Static method in class org.dclermonte.siba.model.SibaManager
    -
    perform the backup
    +
    This method perform the backup.
    BackupPanel - Class in org.dclermonte.siba.gui
    -
    panel for backup
    +
    This class is the panel for backup.
    BackupPanel() - Constructor for class org.dclermonte.siba.gui.BackupPanel
    -
    Create the panel.
    +
    This is the constructor for this panel.
    A B C D F G H M O R S T U  diff --git a/javaDoc/index-files/index-3.html b/javaDoc/index-files/index-3.html index 0435cfc..97377ce 100644 --- a/javaDoc/index-files/index-3.html +++ b/javaDoc/index-files/index-3.html @@ -2,9 +2,9 @@ - + C-Index - + @@ -82,11 +82,11 @@
     
    check(File) - Static method in class org.dclermonte.siba.cli.SibaCLI
    -
    Call for Check from CLI
    +
    This method is called for Check from CLI.
    check(File) - Static method in class org.dclermonte.siba.model.SibaManager
    -
    To check the file
    +
    This method is used to check the file.
    CheckDirectorySelector - Class in org.dclermonte.siba.gui
    @@ -96,11 +96,11 @@
     
    CheckPanel - Class in org.dclermonte.siba.gui
    -
    The panel for Check
    +
    This class is the panel for Check.
    CheckPanel() - Constructor for class org.dclermonte.siba.gui.CheckPanel
    -
    Create the panel.
    +
    This is the constructor for this panel.
    choosenDirectory() - Method in class org.dclermonte.siba.gui.CheckPanel
     
    diff --git a/javaDoc/index-files/index-4.html b/javaDoc/index-files/index-4.html index c263cb9..3c9af7f 100644 --- a/javaDoc/index-files/index-4.html +++ b/javaDoc/index-files/index-4.html @@ -2,9 +2,9 @@ - + D-Index - + @@ -75,7 +75,9 @@

    D

    directoryToSave(File, TarArchiveOutputStream, int) - Static method in class org.dclermonte.siba.model.SibaManager
    -
     
    +
    +
    This method generate ArchiveEntry.
    +
    A B C D F G H M O R S T U  diff --git a/javaDoc/index-files/index-5.html b/javaDoc/index-files/index-5.html index 8317ae0..ab251e8 100644 --- a/javaDoc/index-files/index-5.html +++ b/javaDoc/index-files/index-5.html @@ -2,9 +2,9 @@ - + F-Index - + @@ -74,9 +74,9 @@

    F

    -
    fileMD5(File, String) - Static method in class org.dclermonte.siba.model.SibaManager
    +
    fileCheckMD5(File, String) - Static method in class org.dclermonte.siba.model.SibaManager
    -
    Generate the file with MD5
    +
    This method Generate the file with MD5.
    A B C D F G H M O R S T U  diff --git a/javaDoc/index-files/index-6.html b/javaDoc/index-files/index-6.html index da2aa61..586f9ea 100644 --- a/javaDoc/index-files/index-6.html +++ b/javaDoc/index-files/index-6.html @@ -2,9 +2,9 @@ - + G-Index - + diff --git a/javaDoc/index-files/index-7.html b/javaDoc/index-files/index-7.html index 88d7a45..f856482 100644 --- a/javaDoc/index-files/index-7.html +++ b/javaDoc/index-files/index-7.html @@ -2,9 +2,9 @@ - + H-Index - + @@ -76,7 +76,7 @@
    help() - Static method in class org.dclermonte.siba.cli.SibaCLI
    -
    The help response
    +
    This method send help response.
    A B C D F G H M O R S T U  diff --git a/javaDoc/index-files/index-8.html b/javaDoc/index-files/index-8.html index 4bbe613..5f39c89 100644 --- a/javaDoc/index-files/index-8.html +++ b/javaDoc/index-files/index-8.html @@ -2,9 +2,9 @@ - + M-Index - + @@ -76,15 +76,15 @@
    main(String) - Static method in class org.dclermonte.siba.gui.AboutDialog
    -
    Launch the application.
    +
    This method Launch the application.
    main(String[]) - Static method in class org.dclermonte.siba.Siba
    -
    Siba stand for Simple Backup This is the main class
    +
    This class Siba stand for Simple Backup.
    md5(File) - Static method in class org.dclermonte.siba.model.SibaManager
    -
    Calculate the MD5 itself
    +
    This method calculate the MD5 itself.
    A B C D F G H M O R S T U  diff --git a/javaDoc/index-files/index-9.html b/javaDoc/index-files/index-9.html index 7adc9be..13226c6 100644 --- a/javaDoc/index-files/index-9.html +++ b/javaDoc/index-files/index-9.html @@ -2,9 +2,9 @@ - + O-Index - + diff --git a/javaDoc/index.html b/javaDoc/index.html index 1d95a1f..45c56e5 100644 --- a/javaDoc/index.html +++ b/javaDoc/index.html @@ -2,7 +2,7 @@ - + Generated Documentation (Untitled) @@ -50,7 +50,7 @@ var activeTableTab = "activeTableTab"; - -SibaNullException  - @@ -129,7 +130,30 @@ -SibaNullException  +SibaException +
    The class Exception and its subclasses are a form of + Throwable that indicates conditions that a reasonable application + might want to catch.
    + + + + + +
  • + + + + + + + + + +
    Classes in org.dclermonte.siba used by org.dclermonte.siba.gui 
    Class and Description
    SibaException +
    The class Exception and its subclasses are a form of + Throwable that indicates conditions that a reasonable application + might want to catch.
    +
    @@ -144,7 +168,11 @@ -SibaNullException  +SibaException +
    The class Exception and its subclasses are a form of + Throwable that indicates conditions that a reasonable application + might want to catch.
    + diff --git a/javaDoc/overview-frame.html b/javaDoc/overview-frame.html index 59b40cd..63d3323 100644 --- a/javaDoc/overview-frame.html +++ b/javaDoc/overview-frame.html @@ -2,9 +2,9 @@ - + Overview List - + diff --git a/javaDoc/overview-summary.html b/javaDoc/overview-summary.html index 9b8f1ab..41ffded 100644 --- a/javaDoc/overview-summary.html +++ b/javaDoc/overview-summary.html @@ -2,9 +2,9 @@ - + Overview - + diff --git a/javaDoc/overview-tree.html b/javaDoc/overview-tree.html index 61dec97..5e6708f 100644 --- a/javaDoc/overview-tree.html +++ b/javaDoc/overview-tree.html @@ -2,9 +2,9 @@ - + Class Hierarchy - + @@ -130,9 +130,15 @@
  • org.dclermonte.siba.model.SibaManager
  • java.lang.Throwable (implements java.io.Serializable) diff --git a/javaDoc/serialized-form.html b/javaDoc/serialized-form.html index c4c3531..55bab7d 100644 --- a/javaDoc/serialized-form.html +++ b/javaDoc/serialized-form.html @@ -2,9 +2,9 @@ - + Serialized Form - + @@ -77,24 +77,42 @@
  • Package org.dclermonte.siba

  • diff --git a/lib/Siba.jar b/lib/Siba.jar index e7f1241..a0a02bf 100644 Binary files a/lib/Siba.jar and b/lib/Siba.jar differ diff --git a/lib/org/dclermonte/siba/Siba.html b/lib/org/dclermonte/siba/Siba.html deleted file mode 100644 index c93f24d..0000000 --- a/lib/org/dclermonte/siba/Siba.html +++ /dev/null @@ -1,282 +0,0 @@ - - - - - -Siba - - - - - - - - - - - - -
    -
    org.dclermonte.siba
    -

    Class Siba

    -
    -
    - -
    -
      -
    • -
      -
      -
      public class Siba
      -extends Object
      -
    • -
    -
    -
    - -
    -
    - -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/class-use/SibaException.html b/lib/org/dclermonte/siba/class-use/SibaException.html deleted file mode 100644 index 6a349bc..0000000 --- a/lib/org/dclermonte/siba/class-use/SibaException.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.SibaException - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.SibaException

    -
    -
    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/class-use/SibaNullException.html b/lib/org/dclermonte/siba/class-use/SibaNullException.html deleted file mode 100644 index d961cb8..0000000 --- a/lib/org/dclermonte/siba/class-use/SibaNullException.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.SibaNullException - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.SibaNullException

    -
    -
    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/cli/SibaCLI.html b/lib/org/dclermonte/siba/cli/SibaCLI.html deleted file mode 100644 index 679e3e3..0000000 --- a/lib/org/dclermonte/siba/cli/SibaCLI.html +++ /dev/null @@ -1,342 +0,0 @@ - - - - - -SibaCLI - - - - - - - - - - - - -
    -
    org.dclermonte.siba.cli
    -

    Class SibaCLI

    -
    -
    - -
    -
      -
    • -
      -
      -
      public class SibaCLI
      -extends Object
      -
      CLI = the Command Line Interface
      -
    • -
    -
    -
    - -
    -
    - -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/cli/class-use/SibaCLI.html b/lib/org/dclermonte/siba/cli/class-use/SibaCLI.html deleted file mode 100644 index 840b6c3..0000000 --- a/lib/org/dclermonte/siba/cli/class-use/SibaCLI.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.cli.SibaCLI - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.cli.SibaCLI

    -
    -
    No usage of org.dclermonte.siba.cli.SibaCLI
    - - - - - - diff --git a/lib/org/dclermonte/siba/cli/package-frame.html b/lib/org/dclermonte/siba/cli/package-frame.html deleted file mode 100644 index 6c19fcd..0000000 --- a/lib/org/dclermonte/siba/cli/package-frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - -org.dclermonte.siba.cli - - - - - -

    org.dclermonte.siba.cli

    -
    -

    Classes

    - -
    - - diff --git a/lib/org/dclermonte/siba/cli/package-summary.html b/lib/org/dclermonte/siba/cli/package-summary.html deleted file mode 100644 index 1c21bd9..0000000 --- a/lib/org/dclermonte/siba/cli/package-summary.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - -org.dclermonte.siba.cli - - - - - - - - - - - -
    -

    Package org.dclermonte.siba.cli

    -
    -
    -
      -
    • - - - - - - - - - - - - -
      Class Summary 
      ClassDescription
      SibaCLI -
      CLI = the Command Line Interface
      -
      -
    • -
    -
    - - - - - - diff --git a/lib/org/dclermonte/siba/cli/package-tree.html b/lib/org/dclermonte/siba/cli/package-tree.html deleted file mode 100644 index e296554..0000000 --- a/lib/org/dclermonte/siba/cli/package-tree.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - -org.dclermonte.siba.cli Class Hierarchy - - - - - - - - - - - -
    -

    Hierarchy For Package org.dclermonte.siba.cli

    -Package Hierarchies: - -
    -
    -

    Class Hierarchy

    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/AboutDialog.html b/lib/org/dclermonte/siba/gui/AboutDialog.html deleted file mode 100644 index 1e6563e..0000000 --- a/lib/org/dclermonte/siba/gui/AboutDialog.html +++ /dev/null @@ -1,410 +0,0 @@ - - - - - -AboutDialog - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui
    -

    Class AboutDialog

    -
    -
    - -
    - -
    -
    - -
    -
    -
      -
    • - -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          AboutDialog

          -
          public AboutDialog()
          -
          Create the dialog.
          -
        • -
        -
      • -
      - -
        -
      • - - -

        Method Detail

        - - - -
          -
        • -

          main

          -
          public static void main(String string)
          -
          Launch the application.
          -
        • -
        -
      • -
      -
    • -
    -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/BackupPanel.html b/lib/org/dclermonte/siba/gui/BackupPanel.html deleted file mode 100644 index 29ecb94..0000000 --- a/lib/org/dclermonte/siba/gui/BackupPanel.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - -BackupPanel - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui
    -

    Class BackupPanel

    -
    -
    - -
    - -
    -
    - -
    -
    -
      -
    • - -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          BackupPanel

          -
          public BackupPanel()
          -
          Create the panel.
          -
        • -
        -
      • -
      -
    • -
    -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/CheckDirectorySelector.html b/lib/org/dclermonte/siba/gui/CheckDirectorySelector.html deleted file mode 100644 index c9bee07..0000000 --- a/lib/org/dclermonte/siba/gui/CheckDirectorySelector.html +++ /dev/null @@ -1,463 +0,0 @@ - - - - - -CheckDirectorySelector - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui
    -

    Class CheckDirectorySelector

    -
    -
    - -
    - -
    -
    - -
    -
    -
      -
    • - -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          CheckDirectorySelector

          -
          public CheckDirectorySelector(File targetFile)
          -
        • -
        -
      • -
      - - -
    • -
    -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/CheckPanel.html b/lib/org/dclermonte/siba/gui/CheckPanel.html deleted file mode 100644 index e3475a9..0000000 --- a/lib/org/dclermonte/siba/gui/CheckPanel.html +++ /dev/null @@ -1,390 +0,0 @@ - - - - - -CheckPanel - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui
    -

    Class CheckPanel

    -
    -
    - -
    - -
    -
    - -
    -
    - -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/SibaGUI.html b/lib/org/dclermonte/siba/gui/SibaGUI.html deleted file mode 100644 index 395e359..0000000 --- a/lib/org/dclermonte/siba/gui/SibaGUI.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - -SibaGUI - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui
    -

    Class SibaGUI

    -
    -
    - -
    -
      -
    • -
      -
      -
      public class SibaGUI
      -extends Object
      -
    • -
    -
    -
    - -
    -
    - -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/SourceDirectorySelector.html b/lib/org/dclermonte/siba/gui/SourceDirectorySelector.html deleted file mode 100644 index d3ef5a9..0000000 --- a/lib/org/dclermonte/siba/gui/SourceDirectorySelector.html +++ /dev/null @@ -1,465 +0,0 @@ - - - - - -SourceDirectorySelector - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui
    -

    Class SourceDirectorySelector

    -
    -
    - -
    - -
    -
    - -
    -
    -
      -
    • - -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          SourceDirectorySelector

          -
          public SourceDirectorySelector(File targetFile)
          -
        • -
        -
      • -
      - - -
    • -
    -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/TargetDirectorySelector.html b/lib/org/dclermonte/siba/gui/TargetDirectorySelector.html deleted file mode 100644 index d73716c..0000000 --- a/lib/org/dclermonte/siba/gui/TargetDirectorySelector.html +++ /dev/null @@ -1,465 +0,0 @@ - - - - - -TargetDirectorySelector - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui
    -

    Class TargetDirectorySelector

    -
    -
    - -
    - -
    -
    - -
    -
    -
      -
    • - -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          TargetDirectorySelector

          -
          public TargetDirectorySelector(File targetFile)
          -
        • -
        -
      • -
      - - -
    • -
    -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/class-use/AboutDialog.html b/lib/org/dclermonte/siba/gui/class-use/AboutDialog.html deleted file mode 100644 index cfae54a..0000000 --- a/lib/org/dclermonte/siba/gui/class-use/AboutDialog.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.AboutDialog - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.AboutDialog

    -
    -
    No usage of org.dclermonte.siba.gui.AboutDialog
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/class-use/BackupPanel.html b/lib/org/dclermonte/siba/gui/class-use/BackupPanel.html deleted file mode 100644 index 9999e41..0000000 --- a/lib/org/dclermonte/siba/gui/class-use/BackupPanel.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.BackupPanel - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.BackupPanel

    -
    -
    No usage of org.dclermonte.siba.gui.BackupPanel
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/class-use/CheckDirectorySelector.html b/lib/org/dclermonte/siba/gui/class-use/CheckDirectorySelector.html deleted file mode 100644 index 93d9d68..0000000 --- a/lib/org/dclermonte/siba/gui/class-use/CheckDirectorySelector.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.CheckDirectorySelector - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.CheckDirectorySelector

    -
    -
    No usage of org.dclermonte.siba.gui.CheckDirectorySelector
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/class-use/CheckPanel.html b/lib/org/dclermonte/siba/gui/class-use/CheckPanel.html deleted file mode 100644 index 204593e..0000000 --- a/lib/org/dclermonte/siba/gui/class-use/CheckPanel.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.CheckPanel - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.CheckPanel

    -
    -
    No usage of org.dclermonte.siba.gui.CheckPanel
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/class-use/SibaGUI.html b/lib/org/dclermonte/siba/gui/class-use/SibaGUI.html deleted file mode 100644 index 496fa0a..0000000 --- a/lib/org/dclermonte/siba/gui/class-use/SibaGUI.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.SibaGUI - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.SibaGUI

    -
    -
    No usage of org.dclermonte.siba.gui.SibaGUI
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/class-use/SourceDirectorySelector.html b/lib/org/dclermonte/siba/gui/class-use/SourceDirectorySelector.html deleted file mode 100644 index 8dbe9d4..0000000 --- a/lib/org/dclermonte/siba/gui/class-use/SourceDirectorySelector.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.SourceDirectorySelector - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.SourceDirectorySelector

    -
    -
    No usage of org.dclermonte.siba.gui.SourceDirectorySelector
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/class-use/TargetDirectorySelector.html b/lib/org/dclermonte/siba/gui/class-use/TargetDirectorySelector.html deleted file mode 100644 index fc96777..0000000 --- a/lib/org/dclermonte/siba/gui/class-use/TargetDirectorySelector.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.TargetDirectorySelector - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.TargetDirectorySelector

    -
    -
    No usage of org.dclermonte.siba.gui.TargetDirectorySelector
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/package-frame.html b/lib/org/dclermonte/siba/gui/package-frame.html deleted file mode 100644 index 10435f7..0000000 --- a/lib/org/dclermonte/siba/gui/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - -org.dclermonte.siba.gui - - - - - -

    org.dclermonte.siba.gui

    - - - diff --git a/lib/org/dclermonte/siba/gui/package-summary.html b/lib/org/dclermonte/siba/gui/package-summary.html deleted file mode 100644 index 65b79a7..0000000 --- a/lib/org/dclermonte/siba/gui/package-summary.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - -org.dclermonte.siba.gui - - - - - - - - - - - -
    -

    Package org.dclermonte.siba.gui

    -
    -
    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/package-tree.html b/lib/org/dclermonte/siba/gui/package-tree.html deleted file mode 100644 index 5dc12ad..0000000 --- a/lib/org/dclermonte/siba/gui/package-tree.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - -org.dclermonte.siba.gui Class Hierarchy - - - - - - - - - - - -
    -

    Hierarchy For Package org.dclermonte.siba.gui

    -Package Hierarchies: - -
    -
    -

    Class Hierarchy

    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/package-use.html b/lib/org/dclermonte/siba/gui/package-use.html deleted file mode 100644 index 240ff5f..0000000 --- a/lib/org/dclermonte/siba/gui/package-use.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Package org.dclermonte.siba.gui - - - - - - - - - - - -
    -

    Uses of Package
    org.dclermonte.siba.gui

    -
    -
    No usage of org.dclermonte.siba.gui
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/utils/GUIToolBox.html b/lib/org/dclermonte/siba/gui/utils/GUIToolBox.html deleted file mode 100644 index 24f8a15..0000000 --- a/lib/org/dclermonte/siba/gui/utils/GUIToolBox.html +++ /dev/null @@ -1,274 +0,0 @@ - - - - - -GUIToolBox - - - - - - - - - - - - -
    -
    org.dclermonte.siba.gui.utils
    -

    Class GUIToolBox

    -
    -
    - -
    -
      -
    • -
      -
      -
      public class GUIToolBox
      -extends Object
      -
    • -
    -
    -
    - -
    -
    -
      -
    • - -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          GUIToolBox

          -
          public GUIToolBox()
          -
        • -
        -
      • -
      - -
        -
      • - - -

        Method Detail

        - - - -
          -
        • -

          availableLookAndFeels

          -
          public static List<String> availableLookAndFeels()
          -
          -
          Returns:
          -
          -
        • -
        -
      • -
      -
    • -
    -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/gui/utils/class-use/GUIToolBox.html b/lib/org/dclermonte/siba/gui/utils/class-use/GUIToolBox.html deleted file mode 100644 index db3ee81..0000000 --- a/lib/org/dclermonte/siba/gui/utils/class-use/GUIToolBox.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.gui.utils.GUIToolBox - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.gui.utils.GUIToolBox

    -
    -
    No usage of org.dclermonte.siba.gui.utils.GUIToolBox
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/utils/package-frame.html b/lib/org/dclermonte/siba/gui/utils/package-frame.html deleted file mode 100644 index 3b13048..0000000 --- a/lib/org/dclermonte/siba/gui/utils/package-frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - -org.dclermonte.siba.gui.utils - - - - - -

    org.dclermonte.siba.gui.utils

    -
    -

    Classes

    - -
    - - diff --git a/lib/org/dclermonte/siba/gui/utils/package-summary.html b/lib/org/dclermonte/siba/gui/utils/package-summary.html deleted file mode 100644 index ee0577d..0000000 --- a/lib/org/dclermonte/siba/gui/utils/package-summary.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - -org.dclermonte.siba.gui.utils - - - - - - - - - - - -
    -

    Package org.dclermonte.siba.gui.utils

    -
    -
    -
      -
    • - - - - - - - - - - - - -
      Class Summary 
      ClassDescription
      GUIToolBox 
      -
    • -
    -
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/utils/package-tree.html b/lib/org/dclermonte/siba/gui/utils/package-tree.html deleted file mode 100644 index 434d02e..0000000 --- a/lib/org/dclermonte/siba/gui/utils/package-tree.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - -org.dclermonte.siba.gui.utils Class Hierarchy - - - - - - - - - - - -
    -

    Hierarchy For Package org.dclermonte.siba.gui.utils

    -Package Hierarchies: - -
    -
    -

    Class Hierarchy

    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/gui/utils/package-use.html b/lib/org/dclermonte/siba/gui/utils/package-use.html deleted file mode 100644 index 1a52454..0000000 --- a/lib/org/dclermonte/siba/gui/utils/package-use.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Package org.dclermonte.siba.gui.utils - - - - - - - - - - - -
    -

    Uses of Package
    org.dclermonte.siba.gui.utils

    -
    -
    No usage of org.dclermonte.siba.gui.utils
    - - - - - - diff --git a/lib/org/dclermonte/siba/model/SibaManager.html b/lib/org/dclermonte/siba/model/SibaManager.html deleted file mode 100644 index 49b752b..0000000 --- a/lib/org/dclermonte/siba/model/SibaManager.html +++ /dev/null @@ -1,344 +0,0 @@ - - - - - -SibaManager - - - - - - - - - - - - -
    -
    org.dclermonte.siba.model
    -

    Class SibaManager

    -
    -
    - -
    -
      -
    • -
      -
      -
      public class SibaManager
      -extends Object
      -
    • -
    -
    -
    - -
    -
    - -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/model/SibaManagerTest.html b/lib/org/dclermonte/siba/model/SibaManagerTest.html deleted file mode 100644 index ec9e784..0000000 --- a/lib/org/dclermonte/siba/model/SibaManagerTest.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - -SibaManagerTest - - - - - - - - - - - - -
    -
    org.dclermonte.siba.model
    -

    Class SibaManagerTest

    -
    -
    - -
    -
      -
    • -
      -
      -
      public class SibaManagerTest
      -extends Object
      -
      -
      Author:
      -
      cpm
      -
      -
    • -
    -
    -
    - -
    -
    -
      -
    • - -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          SibaManagerTest

          -
          public SibaManagerTest()
          -
        • -
        -
      • -
      - - -
    • -
    -
    -
    - - - - - - - diff --git a/lib/org/dclermonte/siba/model/class-use/SibaManager.html b/lib/org/dclermonte/siba/model/class-use/SibaManager.html deleted file mode 100644 index 51375b4..0000000 --- a/lib/org/dclermonte/siba/model/class-use/SibaManager.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.model.SibaManager - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.model.SibaManager

    -
    -
    No usage of org.dclermonte.siba.model.SibaManager
    - - - - - - diff --git a/lib/org/dclermonte/siba/model/class-use/SibaManagerTest.html b/lib/org/dclermonte/siba/model/class-use/SibaManagerTest.html deleted file mode 100644 index e439067..0000000 --- a/lib/org/dclermonte/siba/model/class-use/SibaManagerTest.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -Uses of Class org.dclermonte.siba.model.SibaManagerTest - - - - - - - - - - - -
    -

    Uses of Class
    org.dclermonte.siba.model.SibaManagerTest

    -
    -
    No usage of org.dclermonte.siba.model.SibaManagerTest
    - - - - - - diff --git a/lib/org/dclermonte/siba/model/package-frame.html b/lib/org/dclermonte/siba/model/package-frame.html deleted file mode 100644 index 8faa9bb..0000000 --- a/lib/org/dclermonte/siba/model/package-frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - -org.dclermonte.siba.model - - - - - -

    org.dclermonte.siba.model

    -
    -

    Classes

    - -
    - - diff --git a/lib/org/dclermonte/siba/model/package-summary.html b/lib/org/dclermonte/siba/model/package-summary.html deleted file mode 100644 index f8d955a..0000000 --- a/lib/org/dclermonte/siba/model/package-summary.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - -org.dclermonte.siba.model - - - - - - - - - - - -
    -

    Package org.dclermonte.siba.model

    -
    -
    -
      -
    • - - - - - - - - - - - - -
      Class Summary 
      ClassDescription
      SibaManager 
      -
    • -
    -
    - - - - - - diff --git a/lib/org/dclermonte/siba/model/package-tree.html b/lib/org/dclermonte/siba/model/package-tree.html deleted file mode 100644 index 2f2e612..0000000 --- a/lib/org/dclermonte/siba/model/package-tree.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - -org.dclermonte.siba.model Class Hierarchy - - - - - - - - - - - -
    -

    Hierarchy For Package org.dclermonte.siba.model

    -Package Hierarchies: - -
    -
    -

    Class Hierarchy

    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/package-frame.html b/lib/org/dclermonte/siba/package-frame.html deleted file mode 100644 index f228cfb..0000000 --- a/lib/org/dclermonte/siba/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - -org.dclermonte.siba - - - - - -

    org.dclermonte.siba

    - - - diff --git a/lib/org/dclermonte/siba/package-summary.html b/lib/org/dclermonte/siba/package-summary.html deleted file mode 100644 index 1244b09..0000000 --- a/lib/org/dclermonte/siba/package-summary.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - -org.dclermonte.siba - - - - - - - - - - - -
    -

    Package org.dclermonte.siba

    -
    -
    -
      -
    • - - - - - - - - - - - - - - - - - - - - -
      Class Summary 
      ClassDescription
      Siba 
      SibaException -
      The class Exception and its subclasses are a form of - Throwable that indicates conditions that a reasonable application - might want to catch.
      -
      SibaNullException 
      -
    • -
    -
    - - - - - - diff --git a/lib/org/dclermonte/siba/package-tree.html b/lib/org/dclermonte/siba/package-tree.html deleted file mode 100644 index 693fe1d..0000000 --- a/lib/org/dclermonte/siba/package-tree.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - -org.dclermonte.siba Class Hierarchy - - - - - - - - - - - -
    -

    Hierarchy For Package org.dclermonte.siba

    -Package Hierarchies: - -
    -
    -

    Class Hierarchy

    - -
    - - - - - - diff --git a/lib/org/dclermonte/siba/package-use.html b/lib/org/dclermonte/siba/package-use.html deleted file mode 100644 index 0af2209..0000000 --- a/lib/org/dclermonte/siba/package-use.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - -Uses of Package org.dclermonte.siba - - - - - - - - - - - -
    -

    Uses of Package
    org.dclermonte.siba

    -
    -
    - -
    - - - - - - diff --git a/src/org/dclermonte/siba/Siba.java b/src/org/dclermonte/siba/Siba.java index 534398b..987316b 100644 --- a/src/org/dclermonte/siba/Siba.java +++ b/src/org/dclermonte/siba/Siba.java @@ -29,17 +29,18 @@ import org.dclermonte.siba.gui.SibaGUI; public class Siba { /** - * Siba stand for Simple Backup This is the main class + * This class Siba stand for Simple Backup. This is the main class. * * * @param args * @throws ArchiveException * @throws IOException * @throws NoSuchAlgorithmException - * @throws SibaNullException + * @throws SibaException */ - public static void main(final String[] args) throws ArchiveException, IOException, NoSuchAlgorithmException + public static void main(final String[] args) + throws ArchiveException, IOException, NoSuchAlgorithmException, SibaException { if (args.length == 0) diff --git a/src/org/dclermonte/siba/SibaBackupSourceMissingException.java b/src/org/dclermonte/siba/SibaBackupSourceMissingException.java new file mode 100644 index 0000000..19ac3a0 --- /dev/null +++ b/src/org/dclermonte/siba/SibaBackupSourceMissingException.java @@ -0,0 +1,24 @@ +package org.dclermonte.siba; + +public class SibaBackupSourceMissingException extends SibaException +{ + /** + * + */ + private static final long serialVersionUID = 7222468364832008228L; + + public SibaBackupSourceMissingException() + { + super(); + } + + public SibaBackupSourceMissingException(final String message) + { + super(message); + } + + public SibaBackupSourceMissingException(final String message, final Throwable cause) + { + super(message, cause); + } +} diff --git a/src/org/dclermonte/siba/SibaBackupSourceNotDirectoryException.java b/src/org/dclermonte/siba/SibaBackupSourceNotDirectoryException.java new file mode 100644 index 0000000..c4d7395 --- /dev/null +++ b/src/org/dclermonte/siba/SibaBackupSourceNotDirectoryException.java @@ -0,0 +1,24 @@ +package org.dclermonte.siba; + +public class SibaBackupSourceNotDirectoryException extends SibaException +{ + /** + * + */ + private static final long serialVersionUID = -5089169155692368448L; + + public SibaBackupSourceNotDirectoryException() + { + super(); + } + + public SibaBackupSourceNotDirectoryException(final String message) + { + super(message); + } + + public SibaBackupSourceNotDirectoryException(final String message, final Throwable cause) + { + super(message, cause); + } +} diff --git a/src/org/dclermonte/siba/SibaBackupTargetMissingException.java b/src/org/dclermonte/siba/SibaBackupTargetMissingException.java new file mode 100644 index 0000000..ce938e3 --- /dev/null +++ b/src/org/dclermonte/siba/SibaBackupTargetMissingException.java @@ -0,0 +1,26 @@ +package org.dclermonte.siba; + +public class SibaBackupTargetMissingException extends SibaException +{ + + /** + * + */ + + private static final long serialVersionUID = 2249962275756375452L; + + public SibaBackupTargetMissingException() + { + super(); + } + + public SibaBackupTargetMissingException(final String message) + { + super(message); + } + + public SibaBackupTargetMissingException(final String message, final Throwable cause) + { + super(message, cause); + } +} diff --git a/src/org/dclermonte/siba/SibaException.java b/src/org/dclermonte/siba/SibaException.java index 2e37017..9adbbf1 100644 --- a/src/org/dclermonte/siba/SibaException.java +++ b/src/org/dclermonte/siba/SibaException.java @@ -26,7 +26,7 @@ package org.dclermonte.siba; * @jls 11.2 Compile-Time Checking of Exceptions * @since JDK1.0 */ -public class SibaException extends Throwable +public class SibaException extends Exception { static final long serialVersionUID = -3387516993124229948L; diff --git a/src/org/dclermonte/siba/SibaNullException.java b/src/org/dclermonte/siba/SibaNullException.java deleted file mode 100644 index 9dc0f11..0000000 --- a/src/org/dclermonte/siba/SibaNullException.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.dclermonte.siba; - -public class SibaNullException extends SibaException - -{ - /** - * - */ - - private static final long serialVersionUID = 2249962275756375452L; - - public SibaNullException() - { - super(); - } - - public SibaNullException(final String message) - { - super(message); - } -} diff --git a/src/org/dclermonte/siba/cli/SibaCLI.java b/src/org/dclermonte/siba/cli/SibaCLI.java index 437b2f9..c338eeb 100644 --- a/src/org/dclermonte/siba/cli/SibaCLI.java +++ b/src/org/dclermonte/siba/cli/SibaCLI.java @@ -26,11 +26,11 @@ import java.util.ResourceBundle; import org.apache.commons.compress.archivers.ArchiveException; import org.apache.commons.lang3.StringUtils; -import org.dclermonte.siba.SibaNullException; +import org.dclermonte.siba.SibaException; import org.dclermonte.siba.model.SibaManager; /** - * CLI = the Command Line Interface + * This class CLI is for use from Command Line Interface. * * */ @@ -41,16 +41,16 @@ public class SibaCLI /** * - * Call for Backup from CLI + * This method is called for Backup from CLI. * * @param directoryToSave * @param targetDirectory * @throws ArchiveException * @throws IOException - * @throws SibaNullException + * @throws SibaException */ public static void backup(final File directoryToSave, final File targetDirectory) - throws ArchiveException, IOException, SibaNullException + throws ArchiveException, IOException, SibaException { File result; result = SibaManager.backup(directoryToSave, targetDirectory); @@ -60,7 +60,7 @@ public class SibaCLI /** * - * Call for Check from CLI + * This method is called for Check from CLI. * * @param fileToCheck * @throws NoSuchAlgorithmException @@ -87,7 +87,7 @@ public class SibaCLI /** * - * The help response + * This method send help response. * */ public static void help() @@ -103,15 +103,15 @@ public class SibaCLI /** * - * Launcher for CLI + * This method launch CLI. * * @param args * @throws ArchiveException * @throws IOException * @throws NoSuchAlgorithmException - * @throws SibaNullException */ - public static void run(final String[] args) throws ArchiveException, IOException, NoSuchAlgorithmException + public static void run(final String[] args) + throws ArchiveException, IOException, NoSuchAlgorithmException, SibaException { try { @@ -156,11 +156,11 @@ public class SibaCLI { backup(directoryToSave, targetDirectory); } + else { System.out.println(BUNDLE.getString("directoryNotExist.text")); help(); - } } else @@ -168,7 +168,6 @@ public class SibaCLI System.out.println(BUNDLE.getString("badUsage.text")); help(); } - } else if (StringUtils.equals(args[0], "check")) { @@ -205,31 +204,27 @@ public class SibaCLI if (fileToCheckFinal.exists()) { - check(fileToCheckFinal); - } else { System.out.println(BUNDLE.getString("missingFileToCheck.text")); help(); } - } } else { System.out.println(BUNDLE.getString("badUsage.text")); help(); - } } } - catch (SibaNullException nullException) + catch (SibaException nullException) { - System.out.println(nullException.getMessage()); + System.out.println("SibaException = " + nullException.getMessage()); } } diff --git a/src/org/dclermonte/siba/cli/messages.properties b/src/org/dclermonte/siba/cli/messages.properties index e982243..6e6e29c 100644 --- a/src/org/dclermonte/siba/cli/messages.properties +++ b/src/org/dclermonte/siba/cli/messages.properties @@ -7,3 +7,5 @@ missingDirectoryToSave.text = Missing the directory to backup directoryToSaveNotExist.text = The directory to save do not exist directoryNotExist.text = one of the directories does not exist missingFileToCheck.text = Missing the file to check +missingTargetFile.text=missing target file +NotDirectorySource.text=Source is not a directory \ No newline at end of file diff --git a/src/org/dclermonte/siba/cli/messages_fr_FR.properties b/src/org/dclermonte/siba/cli/messages_fr_FR.properties index 4666b10..37f8b07 100644 --- a/src/org/dclermonte/siba/cli/messages_fr_FR.properties +++ b/src/org/dclermonte/siba/cli/messages_fr_FR.properties @@ -7,3 +7,5 @@ missingDirectoryToSave.text = Il manque le r directoryToSaveNotExist.text = Le répertoire à sauvegarder n'existe pas directoryNotExist.text = L'un des répertoires n'existe pas missingFileToCheck.text = Il manque le fichier à vérifier +missingTargetFile.text=Le répertoire destination n'existe pas +NotDirectorySource.text=La source n'est pas un répertoire \ No newline at end of file diff --git a/src/org/dclermonte/siba/gui/AboutDialog.java b/src/org/dclermonte/siba/gui/AboutDialog.java index b4ad233..e0bab09 100644 --- a/src/org/dclermonte/siba/gui/AboutDialog.java +++ b/src/org/dclermonte/siba/gui/AboutDialog.java @@ -45,7 +45,7 @@ public class AboutDialog extends JDialog private static final long serialVersionUID = 8868109575782482455L; /** - * Create the dialog. + * This is the constructor for the dialog. */ public AboutDialog() { @@ -86,7 +86,7 @@ public class AboutDialog extends JDialog } /** - * Launch the application. + * This method Launch the application. */ public static void main(final String string) { diff --git a/src/org/dclermonte/siba/gui/BackupPanel.java b/src/org/dclermonte/siba/gui/BackupPanel.java index 131fb5f..e70a2ce 100644 --- a/src/org/dclermonte/siba/gui/BackupPanel.java +++ b/src/org/dclermonte/siba/gui/BackupPanel.java @@ -38,7 +38,7 @@ import javax.swing.JTextField; import javax.swing.SwingConstants; import org.apache.commons.compress.archivers.ArchiveException; -import org.dclermonte.siba.SibaNullException; +import org.dclermonte.siba.SibaException; import org.dclermonte.siba.model.SibaManager; import com.jgoodies.forms.layout.ColumnSpec; @@ -48,7 +48,7 @@ import com.jgoodies.forms.layout.RowSpec; /** * - * panel for backup + * This class is the panel for backup. * * @author papou * @@ -67,10 +67,10 @@ public class BackupPanel extends JPanel private JTextField textField_1; /** - * Create the panel. + * This is the constructor for this panel. */ - public BackupPanel() + public BackupPanel() throws SibaException { setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); setLayout(new BorderLayout(0, 0)); @@ -198,11 +198,12 @@ public class BackupPanel extends JPanel } } - catch (ArchiveException | IOException | SibaNullException e1) + catch (ArchiveException | IOException | SibaException e1) { // TODO Auto-generated catch block ((Throwable) this.e1).printStackTrace(); } + } }); diff --git a/src/org/dclermonte/siba/gui/CheckPanel.java b/src/org/dclermonte/siba/gui/CheckPanel.java index 59f3276..7300249 100644 --- a/src/org/dclermonte/siba/gui/CheckPanel.java +++ b/src/org/dclermonte/siba/gui/CheckPanel.java @@ -42,8 +42,8 @@ import com.jgoodies.forms.layout.RowSpec; import com.jgoodies.forms.layout.Sizes; /** - * The panel for Check - * + * This class is the panel for Check. + * * @author papa */ public class CheckPanel extends JPanel @@ -54,7 +54,7 @@ public class CheckPanel extends JPanel private File choosenFile; /** - * Create the panel. + * This is the constructor for this panel. */ public CheckPanel() { diff --git a/src/org/dclermonte/siba/gui/SibaGUI.java b/src/org/dclermonte/siba/gui/SibaGUI.java index d8ee1b3..1ffb1c0 100644 --- a/src/org/dclermonte/siba/gui/SibaGUI.java +++ b/src/org/dclermonte/siba/gui/SibaGUI.java @@ -44,7 +44,7 @@ import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import org.apache.commons.lang3.StringUtils; -import org.dclermonte.siba.SibaNullException; +import org.dclermonte.siba.SibaException; import org.dclermonte.siba.gui.utils.GUIToolBox; /** @@ -65,7 +65,7 @@ public class SibaGUI private JFrame frmSimpleBackup; /** - * Create the application. + * This is the constructor of this application. * * @throws UnsupportedLookAndFeelException * @throws IllegalAccessException @@ -73,7 +73,7 @@ public class SibaGUI * @throws ClassNotFoundException */ public SibaGUI() throws ClassNotFoundException, InstantiationException, IllegalAccessException, - UnsupportedLookAndFeelException, SibaNullException + UnsupportedLookAndFeelException, SibaException { // Set default GUI catch. Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() @@ -145,8 +145,10 @@ public class SibaGUI /** * Initialize the contents of the frame. + * + * @throws SibaException */ - private void initialize() + private void initialize() throws SibaException { this.frmSimpleBackup = new JFrame(); this.frmSimpleBackup.getContentPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); @@ -217,7 +219,7 @@ public class SibaGUI } /** - * + * This method set the local language. */ public void updateLanguage(final Locale source) { @@ -235,7 +237,7 @@ public class SibaGUI } /** - * Launcher for GUI + * This method launch the GUI. */ public static void run() { @@ -249,9 +251,9 @@ public class SibaGUI SibaGUI window = new SibaGUI(); window.frmSimpleBackup.setVisible(true); } - catch (SibaNullException nullException) + catch (SibaException nullException) { - String dataMissing = BUNDLE.getString("BackupPanel.dataMissing.text"); + String dataMissing = nullException.getMessage(); String titleWarning = BUNDLE.getString("BackupPanel.TitleWarning.text"); JOptionPane.showMessageDialog(null, dataMissing, titleWarning, JOptionPane.INFORMATION_MESSAGE); } diff --git a/src/org/dclermonte/siba/model/SibaManager.java b/src/org/dclermonte/siba/model/SibaManager.java index b044d75..d170eea 100644 --- a/src/org/dclermonte/siba/model/SibaManager.java +++ b/src/org/dclermonte/siba/model/SibaManager.java @@ -31,6 +31,7 @@ import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; +import java.util.ResourceBundle; import org.apache.commons.compress.archivers.ArchiveException; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; @@ -38,7 +39,10 @@ import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream; import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream; import org.apache.commons.compress.utils.IOUtils; import org.apache.commons.lang3.StringUtils; -import org.dclermonte.siba.SibaNullException; +import org.dclermonte.siba.SibaBackupSourceMissingException; +import org.dclermonte.siba.SibaBackupSourceNotDirectoryException; +import org.dclermonte.siba.SibaBackupTargetMissingException; +import org.dclermonte.siba.SibaException; /** * The model class @@ -49,45 +53,60 @@ import org.dclermonte.siba.SibaNullException; public class SibaManager { + private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("org.dclermonte.siba.cli.messages"); //$NON-NLS-1$ + /** - * perform the backup - * + * This method perform the backup. + * * @param fileToSave * @param target * @return * @throws ArchiveException * @throws IOException - * @throws SibaNullException + * @throws SibaBackupTargetMissingException */ public static File backup(final File fileToSave, final File target) - throws ArchiveException, IOException, SibaNullException + throws ArchiveException, IOException, SibaException { - File result; - if ((fileToSave == null) || (target == null)) + File result = null; { - throw new SibaNullException("Données incomplètes"); + if (!target.exists()) + { + throw new SibaBackupTargetMissingException(BUNDLE.getString("missingTargetFile.text")); + } + else if (!fileToSave.exists()) + { + throw new SibaBackupSourceMissingException(BUNDLE.getString("missingDirectoryToSave.text")); + } + else if (!fileToSave.isDirectory()) + { + throw new SibaBackupSourceNotDirectoryException(BUNDLE.getString("NotDirectorySource.text")); + } + else + { + int pathLength = fileToSave.getParentFile().getAbsolutePath().length(); + + LocalDateTime date = LocalDateTime.now(); + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH'h'mm'mn'ss's'"); + String textDate = date.format(formatter); + String outputFileNameWithoutExtension = fileToSave.getName() + "-" + textDate; + + result = new File(target + "/" + outputFileNameWithoutExtension + ".tgz"); + OutputStream gzipOutputStream = new GzipCompressorOutputStream( + new BufferedOutputStream(new FileOutputStream(result))); + TarArchiveOutputStream out = new TarArchiveOutputStream(gzipOutputStream); + directoryToSave(fileToSave, out, pathLength); + out.close(); + fileCheckMD5(result, target + "/" + outputFileNameWithoutExtension + ".tgz.md5"); + } + + return result; } - int pathLength = fileToSave.getParentFile().getAbsolutePath().length(); - - LocalDateTime date = LocalDateTime.now(); - DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'H'h'm'mn's's'"); - String textDate = date.format(formatter); - String outputFileNameWithoutExtension = fileToSave.getName() + "-" + textDate; - - result = new File(target + "/" + outputFileNameWithoutExtension + ".tgz"); - OutputStream gzipOutputStream = new GzipCompressorOutputStream( - new BufferedOutputStream(new FileOutputStream(result))); - TarArchiveOutputStream out = new TarArchiveOutputStream(gzipOutputStream); - directoryToSave(fileToSave, out, pathLength); - out.close(); - fileMD5(result, target + "/" + outputFileNameWithoutExtension + ".tgz.md5"); - - return result; } /** - * To check the file - * + * This method is used to check the file. + * * @param choosenFile * @return * @throws IOException @@ -129,6 +148,15 @@ public class SibaManager return result; } + /** + * + * This method generate ArchiveEntry. + * + * @param directory + * @param outputStream + * @param pathLength + * @throws IOException + */ public static void directoryToSave(final File directory, final TarArchiveOutputStream outputStream, final int pathLength) throws IOException { @@ -166,15 +194,15 @@ public class SibaManager } /** - * - * Generate the file with MD5 - * + * + * This method Generate the file with MD5. + * * @param directoryToSave * @param destination * @return * @throws IOException */ - public static File fileMD5(final File directoryToSave, final String destination) throws IOException + public static File fileCheckMD5(final File directoryToSave, final String destination) throws IOException { File result; @@ -190,8 +218,8 @@ public class SibaManager } /** - * Calculate the MD5 itself - * + * This method calculate the MD5 itself. + * * @param input * @return * @throws IOException diff --git a/test/org/dclermonte/siba/model/SibaManagerTest.java b/test/org/dclermonte/siba/model/SibaManagerTest.java index e754c9e..948eaad 100644 --- a/test/org/dclermonte/siba/model/SibaManagerTest.java +++ b/test/org/dclermonte/siba/model/SibaManagerTest.java @@ -5,7 +5,7 @@ import java.io.IOException; import org.apache.commons.compress.archivers.ArchiveException; import org.apache.commons.io.FileUtils; -import org.dclermonte.siba.SibaNullException; +import org.dclermonte.siba.SibaException; import org.testng.Assert; import org.testng.annotations.Test; @@ -30,8 +30,8 @@ public class SibaManagerTest * @throws ArchiveException * @throws SibaNullException */ - @Test(expectedExceptions = SibaNullException.class) - public void backupTest01() throws ArchiveException, IOException, SibaNullException + @Test(expectedExceptions = SibaException.class) + public void backupTest01() throws ArchiveException, IOException, SibaException { SibaManager.backup(null, null); } @@ -43,7 +43,7 @@ public class SibaManagerTest * @throws SibaNullException */ @Test - public void backupTest02() throws ArchiveException, IOException, SibaNullException + public void backupTest02() throws ArchiveException, IOException, SibaException { File source = new File("test/org/dclermonte/siba/data/simplestuff"); File target = SibaManager.backup(source, new File("test/org/dclermonte/siba/data/result"));