From e47e15fdbb7515f5a3757c3f5df8c1d0950aee8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 Mar 2012 23:51:33 +0100 Subject: [PATCH] Fix up all file headers. --- .../jsite/application/AbortedException.java | 2 +- src/de/todesbaum/jsite/application/FileOption.java | 2 +- .../jsite/application/Freenet7Interface.java | 2 +- .../jsite/application/InsertListener.java | 2 +- src/de/todesbaum/jsite/application/KeyDialog.java | 2 +- src/de/todesbaum/jsite/application/Node.java | 2 +- src/de/todesbaum/jsite/application/Project.java | 2 +- .../jsite/application/ProjectInserter.java | 2 +- .../todesbaum/jsite/application/UpdateChecker.java | 2 +- .../jsite/application/UpdateListener.java | 2 +- src/de/todesbaum/jsite/gui/FileScanner.java | 2 +- .../todesbaum/jsite/gui/FileScannerListener.java | 2 +- .../todesbaum/jsite/gui/NodeManagerListener.java | 2 +- src/de/todesbaum/jsite/gui/NodeManagerPage.java | 2 +- src/de/todesbaum/jsite/gui/PreferencesPage.java | 2 +- src/de/todesbaum/jsite/gui/ProjectFilesPage.java | 2 +- src/de/todesbaum/jsite/gui/ProjectInsertPage.java | 2 +- src/de/todesbaum/jsite/gui/ProjectPage.java | 2 +- src/de/todesbaum/jsite/i18n/I18n.java | 2 +- src/de/todesbaum/jsite/i18n/I18nContainer.java | 2 +- src/de/todesbaum/jsite/i18n/jSite.properties | 2 +- src/de/todesbaum/jsite/i18n/jSite_de.properties | 2 +- src/de/todesbaum/jsite/i18n/jSite_fr.properties | 2 +- src/de/todesbaum/jsite/main/CLI.java | 2 +- src/de/todesbaum/jsite/main/Configuration.java | 2 +- .../todesbaum/jsite/main/ConfigurationLocator.java | 2 +- src/de/todesbaum/jsite/main/Main.java | 2 +- src/de/todesbaum/jsite/main/Version.java | 2 +- src/de/todesbaum/util/freenet/fcp2/Client.java | 3 +- src/de/todesbaum/util/freenet/fcp2/ClientGet.java | 3 +- .../todesbaum/util/freenet/fcp2/ClientHello.java | 3 +- src/de/todesbaum/util/freenet/fcp2/ClientPut.java | 3 +- .../util/freenet/fcp2/ClientPutComplexDir.java | 3 +- .../todesbaum/util/freenet/fcp2/ClientPutDir.java | 3 +- src/de/todesbaum/util/freenet/fcp2/Command.java | 3 +- src/de/todesbaum/util/freenet/fcp2/Connection.java | 3 +- .../util/freenet/fcp2/ConnectionListener.java | 3 +- .../util/freenet/fcp2/DirectFileEntry.java | 3 +- .../todesbaum/util/freenet/fcp2/DiskFileEntry.java | 3 +- src/de/todesbaum/util/freenet/fcp2/FileEntry.java | 3 +- .../todesbaum/util/freenet/fcp2/GenerateSSK.java | 3 +- src/de/todesbaum/util/freenet/fcp2/Message.java | 3 +- src/de/todesbaum/util/freenet/fcp2/Node.java | 3 +- .../todesbaum/util/freenet/fcp2/Persistence.java | 3 +- .../todesbaum/util/freenet/fcp2/PriorityClass.java | 3 +- .../util/freenet/fcp2/RedirectFileEntry.java | 3 +- src/de/todesbaum/util/freenet/fcp2/ReturnType.java | 3 +- src/de/todesbaum/util/freenet/fcp2/Verbosity.java | 3 +- src/de/todesbaum/util/image/IconLoader.java | 2 + src/de/todesbaum/util/io/Closer.java | 2 +- src/de/todesbaum/util/io/LineInputStream.java | 3 +- src/de/todesbaum/util/io/StreamCopier.java | 2 + src/de/todesbaum/util/io/TeeOutputStream.java | 125 +++++++++++++++++++++ src/de/todesbaum/util/io/TempFileInputStream.java | 3 +- src/de/todesbaum/util/swing/SortedListModel.java | 3 +- src/de/todesbaum/util/swing/TLabel.java | 3 +- src/de/todesbaum/util/swing/TWizard.java | 3 +- src/de/todesbaum/util/swing/TWizardPage.java | 3 +- src/de/todesbaum/util/swing/WizardListener.java | 3 +- src/de/todesbaum/util/xml/SimpleXML.java | 2 + src/de/todesbaum/util/xml/XML.java | 2 + 61 files changed, 189 insertions(+), 83 deletions(-) create mode 100644 src/de/todesbaum/util/io/TeeOutputStream.java diff --git a/src/de/todesbaum/jsite/application/AbortedException.java b/src/de/todesbaum/jsite/application/AbortedException.java index b45d43a..0dfd8c7 100644 --- a/src/de/todesbaum/jsite/application/AbortedException.java +++ b/src/de/todesbaum/jsite/application/AbortedException.java @@ -1,5 +1,5 @@ /* - * jSite - AbortedException.java - Copyright © 2010–2011 David Roden + * jSite - AbortedException.java - Copyright © 2010–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/application/FileOption.java b/src/de/todesbaum/jsite/application/FileOption.java index 4eec3bf..52d071b 100644 --- a/src/de/todesbaum/jsite/application/FileOption.java +++ b/src/de/todesbaum/jsite/application/FileOption.java @@ -1,5 +1,5 @@ /* - * jSite - FileOption.java - Copyright © 2006–2011 David Roden + * jSite - FileOption.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software diff --git a/src/de/todesbaum/jsite/application/Freenet7Interface.java b/src/de/todesbaum/jsite/application/Freenet7Interface.java index 98cfa04..78250b2 100644 --- a/src/de/todesbaum/jsite/application/Freenet7Interface.java +++ b/src/de/todesbaum/jsite/application/Freenet7Interface.java @@ -1,5 +1,5 @@ /* - * jSite - Freenet7Interface.java - Copyright © 2006–2011 David Roden + * jSite - Freenet7Interface.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/application/InsertListener.java b/src/de/todesbaum/jsite/application/InsertListener.java index 5386a91..9b6b332 100644 --- a/src/de/todesbaum/jsite/application/InsertListener.java +++ b/src/de/todesbaum/jsite/application/InsertListener.java @@ -1,5 +1,5 @@ /* - * jSite - InsertListener.java - Copyright © 2006–2011 David Roden + * jSite - InsertListener.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/application/KeyDialog.java b/src/de/todesbaum/jsite/application/KeyDialog.java index 5aba000..4b64f72 100644 --- a/src/de/todesbaum/jsite/application/KeyDialog.java +++ b/src/de/todesbaum/jsite/application/KeyDialog.java @@ -1,5 +1,5 @@ /* - * jSite - KeyDialog.java - Copyright © 2010–2011 David Roden + * jSite - KeyDialog.java - Copyright © 2010–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/application/Node.java b/src/de/todesbaum/jsite/application/Node.java index 65dbad0..df7492f 100644 --- a/src/de/todesbaum/jsite/application/Node.java +++ b/src/de/todesbaum/jsite/application/Node.java @@ -1,5 +1,5 @@ /* - * jSite - Node.java - Copyright © 2006–2011 David Roden + * jSite - Node.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/application/Project.java b/src/de/todesbaum/jsite/application/Project.java index bf891b1..d09dacc 100644 --- a/src/de/todesbaum/jsite/application/Project.java +++ b/src/de/todesbaum/jsite/application/Project.java @@ -1,5 +1,5 @@ /* - * jSite - Project.java - Copyright © 2006–2011 David Roden + * jSite - Project.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java index f9e2f79..b328527 100644 --- a/src/de/todesbaum/jsite/application/ProjectInserter.java +++ b/src/de/todesbaum/jsite/application/ProjectInserter.java @@ -1,5 +1,5 @@ /* - * jSite - ProjectInserter.java - Copyright © 2006–2011 David Roden + * jSite - ProjectInserter.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/application/UpdateChecker.java b/src/de/todesbaum/jsite/application/UpdateChecker.java index 5e61a76..201c8b9 100644 --- a/src/de/todesbaum/jsite/application/UpdateChecker.java +++ b/src/de/todesbaum/jsite/application/UpdateChecker.java @@ -1,5 +1,5 @@ /* - * jSite - UpdateChecker.java - Copyright © 2008–2011 David Roden + * jSite - UpdateChecker.java - Copyright © 2008–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/application/UpdateListener.java b/src/de/todesbaum/jsite/application/UpdateListener.java index 72f57d8..a37440c 100644 --- a/src/de/todesbaum/jsite/application/UpdateListener.java +++ b/src/de/todesbaum/jsite/application/UpdateListener.java @@ -1,5 +1,5 @@ /* - * jSite - UpdateListener.java - Copyright © 2008–2011 David Roden + * jSite - UpdateListener.java - Copyright © 2008–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/FileScanner.java b/src/de/todesbaum/jsite/gui/FileScanner.java index c777ae8..1790fbf 100644 --- a/src/de/todesbaum/jsite/gui/FileScanner.java +++ b/src/de/todesbaum/jsite/gui/FileScanner.java @@ -1,5 +1,5 @@ /* - * jSite - FileScanner.java - Copyright © 2006–2011 David Roden + * jSite - FileScanner.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/FileScannerListener.java b/src/de/todesbaum/jsite/gui/FileScannerListener.java index 343d0d6..63e2c3d 100644 --- a/src/de/todesbaum/jsite/gui/FileScannerListener.java +++ b/src/de/todesbaum/jsite/gui/FileScannerListener.java @@ -1,5 +1,5 @@ /* - * jSite - FileScannerListener.java - Copyright © 2006–2011 David Roden + * jSite - FileScannerListener.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/NodeManagerListener.java b/src/de/todesbaum/jsite/gui/NodeManagerListener.java index 42bd061..760c967 100644 --- a/src/de/todesbaum/jsite/gui/NodeManagerListener.java +++ b/src/de/todesbaum/jsite/gui/NodeManagerListener.java @@ -1,5 +1,5 @@ /* - * jSite - NodeManagerListener.java - Copyright © 2006–2011 David Roden + * jSite - NodeManagerListener.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/NodeManagerPage.java b/src/de/todesbaum/jsite/gui/NodeManagerPage.java index 7b1895a..8e44129 100644 --- a/src/de/todesbaum/jsite/gui/NodeManagerPage.java +++ b/src/de/todesbaum/jsite/gui/NodeManagerPage.java @@ -1,5 +1,5 @@ /* - * jSite - NodeManagerPage.java - Copyright © 2006–2011 David Roden + * jSite - NodeManagerPage.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index 595f769..9c84c2e 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -1,5 +1,5 @@ /* - * jSite - PreferencesPage.java - Copyright © 2009–2011 David Roden + * jSite - PreferencesPage.java - Copyright © 2009–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java index d2479d4..8bfc631 100644 --- a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java @@ -1,5 +1,5 @@ /* - * jSite - ProjectFilesPage.java - Copyright © 2006–2011 David Roden + * jSite - ProjectFilesPage.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index 99b2b81..611cc8a 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -1,5 +1,5 @@ /* - * jSite - ProjectInsertPage.java - Copyright © 2006–2011 David Roden + * jSite - ProjectInsertPage.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/gui/ProjectPage.java b/src/de/todesbaum/jsite/gui/ProjectPage.java index 0b0fc9c..98ad847 100644 --- a/src/de/todesbaum/jsite/gui/ProjectPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectPage.java @@ -1,5 +1,5 @@ /* - * jSite - ProjectPage.java - Copyright © 2006–2011 David Roden + * jSite - ProjectPage.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/i18n/I18n.java b/src/de/todesbaum/jsite/i18n/I18n.java index 229c5fc..4c1cceb 100644 --- a/src/de/todesbaum/jsite/i18n/I18n.java +++ b/src/de/todesbaum/jsite/i18n/I18n.java @@ -1,5 +1,5 @@ /* - * jSite - I18n.java - Copyright © 2006–2011 David Roden + * jSite - I18n.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/i18n/I18nContainer.java b/src/de/todesbaum/jsite/i18n/I18nContainer.java index 1caca7c..da2e0c3 100644 --- a/src/de/todesbaum/jsite/i18n/I18nContainer.java +++ b/src/de/todesbaum/jsite/i18n/I18nContainer.java @@ -1,5 +1,5 @@ /* - * jSite - I18nContainer.java - Copyright © 2007–2011 David Roden + * jSite - I18nContainer.java - Copyright © 2007–2012 David Roden * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software diff --git a/src/de/todesbaum/jsite/i18n/jSite.properties b/src/de/todesbaum/jsite/i18n/jSite.properties index 4208022..8b101a7 100644 --- a/src/de/todesbaum/jsite/i18n/jSite.properties +++ b/src/de/todesbaum/jsite/i18n/jSite.properties @@ -1,5 +1,5 @@ # -# jSite - jSite.properties - Copyright © 2006–2011 David Roden +# jSite - jSite.properties - Copyright © 2006–2012 David Roden # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/i18n/jSite_de.properties b/src/de/todesbaum/jsite/i18n/jSite_de.properties index 4f9d63c..1ff33f2 100644 --- a/src/de/todesbaum/jsite/i18n/jSite_de.properties +++ b/src/de/todesbaum/jsite/i18n/jSite_de.properties @@ -1,5 +1,5 @@ # -# jSite - jSite_de.properties - Copyright © 2006–2011 David Roden +# jSite - jSite_de.properties - Copyright © 2006–2012 David Roden # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/i18n/jSite_fr.properties b/src/de/todesbaum/jsite/i18n/jSite_fr.properties index 2bec893..1c91a9d 100644 --- a/src/de/todesbaum/jsite/i18n/jSite_fr.properties +++ b/src/de/todesbaum/jsite/i18n/jSite_fr.properties @@ -1,5 +1,5 @@ # -# jSite - jSite_fr.properties - Copyright © 2006–2011 David Roden +# jSite - jSite_fr.properties - Copyright © 2006–2012 David Roden # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/main/CLI.java b/src/de/todesbaum/jsite/main/CLI.java index 40f16df..65c9253 100644 --- a/src/de/todesbaum/jsite/main/CLI.java +++ b/src/de/todesbaum/jsite/main/CLI.java @@ -1,5 +1,5 @@ /* - * jSite - CLI.java - Copyright © 2006–2011 David Roden + * jSite - CLI.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/main/Configuration.java b/src/de/todesbaum/jsite/main/Configuration.java index 53bfb4d..a4e7f29 100644 --- a/src/de/todesbaum/jsite/main/Configuration.java +++ b/src/de/todesbaum/jsite/main/Configuration.java @@ -1,5 +1,5 @@ /* - * jSite - Configuration.java - Copyright © 2006–2011 David Roden + * jSite - Configuration.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/main/ConfigurationLocator.java b/src/de/todesbaum/jsite/main/ConfigurationLocator.java index 34e8809..967f936 100644 --- a/src/de/todesbaum/jsite/main/ConfigurationLocator.java +++ b/src/de/todesbaum/jsite/main/ConfigurationLocator.java @@ -1,5 +1,5 @@ /* - * jSite - ConfigurationLocator.java - Copyright © 2011 David Roden + * jSite - ConfigurationLocator.java - Copyright © 2011–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index ee06ec7..ad61c5b 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -1,5 +1,5 @@ /* - * jSite - Main.java - Copyright © 2006–2011 David Roden + * jSite - Main.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/jsite/main/Version.java b/src/de/todesbaum/jsite/main/Version.java index 2775e79..977836c 100644 --- a/src/de/todesbaum/jsite/main/Version.java +++ b/src/de/todesbaum/jsite/main/Version.java @@ -1,5 +1,5 @@ /* - * jSite - Version.java - Copyright © 2006–2011 David Roden + * jSite - Version.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/Client.java b/src/de/todesbaum/util/freenet/fcp2/Client.java index 63fa418..ede92d1 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Client.java +++ b/src/de/todesbaum/util/freenet/fcp2/Client.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - Client.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/ClientGet.java b/src/de/todesbaum/util/freenet/fcp2/ClientGet.java index d6fb70f..5b340e4 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ClientGet.java +++ b/src/de/todesbaum/util/freenet/fcp2/ClientGet.java @@ -1,6 +1,5 @@ /* - * jSite-remote - ClientGet.java - - * Copyright © 2008 David Roden + * jSite - ClientGet.java - Copyright © 2008–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/ClientHello.java b/src/de/todesbaum/util/freenet/fcp2/ClientHello.java index 4b9e41d..5983078 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ClientHello.java +++ b/src/de/todesbaum/util/freenet/fcp2/ClientHello.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - ClientHello.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/ClientPut.java b/src/de/todesbaum/util/freenet/fcp2/ClientPut.java index acaad49..9993173 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ClientPut.java +++ b/src/de/todesbaum/util/freenet/fcp2/ClientPut.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - ClientPut.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/ClientPutComplexDir.java b/src/de/todesbaum/util/freenet/fcp2/ClientPutComplexDir.java index be61b81..d72f2c1 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ClientPutComplexDir.java +++ b/src/de/todesbaum/util/freenet/fcp2/ClientPutComplexDir.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - ClientPutComplexDir.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java b/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java index e3396bd..96cdd3b 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java +++ b/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - ClientPutDir.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/Command.java b/src/de/todesbaum/util/freenet/fcp2/Command.java index 9fc9527..63aaa9c 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Command.java +++ b/src/de/todesbaum/util/freenet/fcp2/Command.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - Command.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/Connection.java b/src/de/todesbaum/util/freenet/fcp2/Connection.java index d8a8b2d..c4cb669 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Connection.java +++ b/src/de/todesbaum/util/freenet/fcp2/Connection.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - Connection.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/ConnectionListener.java b/src/de/todesbaum/util/freenet/fcp2/ConnectionListener.java index 9ce101d..8e55a2d 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ConnectionListener.java +++ b/src/de/todesbaum/util/freenet/fcp2/ConnectionListener.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - ConnectionListener.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/DirectFileEntry.java b/src/de/todesbaum/util/freenet/fcp2/DirectFileEntry.java index c697c1f..9b12e74 100644 --- a/src/de/todesbaum/util/freenet/fcp2/DirectFileEntry.java +++ b/src/de/todesbaum/util/freenet/fcp2/DirectFileEntry.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - DirectFileEntry.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/DiskFileEntry.java b/src/de/todesbaum/util/freenet/fcp2/DiskFileEntry.java index bb34023..bf036b4 100644 --- a/src/de/todesbaum/util/freenet/fcp2/DiskFileEntry.java +++ b/src/de/todesbaum/util/freenet/fcp2/DiskFileEntry.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - DiskFileEntry.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/FileEntry.java b/src/de/todesbaum/util/freenet/fcp2/FileEntry.java index 3fcdf8b..7adb11f 100644 --- a/src/de/todesbaum/util/freenet/fcp2/FileEntry.java +++ b/src/de/todesbaum/util/freenet/fcp2/FileEntry.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - FileEntry.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/GenerateSSK.java b/src/de/todesbaum/util/freenet/fcp2/GenerateSSK.java index d21b7b9..84e4bf6 100644 --- a/src/de/todesbaum/util/freenet/fcp2/GenerateSSK.java +++ b/src/de/todesbaum/util/freenet/fcp2/GenerateSSK.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - GenerateSSK.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/Message.java b/src/de/todesbaum/util/freenet/fcp2/Message.java index d51d8ad..6c934ec 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Message.java +++ b/src/de/todesbaum/util/freenet/fcp2/Message.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - Message.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/Node.java b/src/de/todesbaum/util/freenet/fcp2/Node.java index ee50ca9..d2fa91c 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Node.java +++ b/src/de/todesbaum/util/freenet/fcp2/Node.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - Node.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/Persistence.java b/src/de/todesbaum/util/freenet/fcp2/Persistence.java index 6f6cdca..55e73f8 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Persistence.java +++ b/src/de/todesbaum/util/freenet/fcp2/Persistence.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - Persistence.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java b/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java index 8a8390e..d9af597 100644 --- a/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java +++ b/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - PriorityClass.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/RedirectFileEntry.java b/src/de/todesbaum/util/freenet/fcp2/RedirectFileEntry.java index c4354c6..06a2171 100644 --- a/src/de/todesbaum/util/freenet/fcp2/RedirectFileEntry.java +++ b/src/de/todesbaum/util/freenet/fcp2/RedirectFileEntry.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - RedirectFileEntry.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/ReturnType.java b/src/de/todesbaum/util/freenet/fcp2/ReturnType.java index 14e2482..6f2ed7a 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ReturnType.java +++ b/src/de/todesbaum/util/freenet/fcp2/ReturnType.java @@ -1,6 +1,5 @@ /* - * jSite-remote - ReturnType.java - - * Copyright © 2008 David Roden + * jSite - ReturnType.java - Copyright © 2008–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/freenet/fcp2/Verbosity.java b/src/de/todesbaum/util/freenet/fcp2/Verbosity.java index e64540f..e59b6a3 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Verbosity.java +++ b/src/de/todesbaum/util/freenet/fcp2/Verbosity.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - Verbosity.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/image/IconLoader.java b/src/de/todesbaum/util/image/IconLoader.java index d764991..ff6441a 100644 --- a/src/de/todesbaum/util/image/IconLoader.java +++ b/src/de/todesbaum/util/image/IconLoader.java @@ -1,4 +1,6 @@ /* + * jSite - IconLoader.java - Copyright © 2006–2012 David Roden + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later diff --git a/src/de/todesbaum/util/io/Closer.java b/src/de/todesbaum/util/io/Closer.java index ea99081..67f7c57 100644 --- a/src/de/todesbaum/util/io/Closer.java +++ b/src/de/todesbaum/util/io/Closer.java @@ -1,5 +1,5 @@ /* - * todesbaum-lib - Copyright (C) 2006 David Roden + * jSite - Closer.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software diff --git a/src/de/todesbaum/util/io/LineInputStream.java b/src/de/todesbaum/util/io/LineInputStream.java index a49e876..4fe0d07 100644 --- a/src/de/todesbaum/util/io/LineInputStream.java +++ b/src/de/todesbaum/util/io/LineInputStream.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - LineInputStream.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/io/StreamCopier.java b/src/de/todesbaum/util/io/StreamCopier.java index ee87c19..c7d99de 100644 --- a/src/de/todesbaum/util/io/StreamCopier.java +++ b/src/de/todesbaum/util/io/StreamCopier.java @@ -1,4 +1,6 @@ /* + * jSite - StreamCopier.java - Copyright © 2006–2012 David Roden + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later diff --git a/src/de/todesbaum/util/io/TeeOutputStream.java b/src/de/todesbaum/util/io/TeeOutputStream.java new file mode 100644 index 0000000..78860dc --- /dev/null +++ b/src/de/todesbaum/util/io/TeeOutputStream.java @@ -0,0 +1,125 @@ +/* + * jSite - TeeOutputStream.java - Copyright © 2010 David Roden + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package de.todesbaum.util.io; + +import java.io.IOException; +import java.io.OutputStream; + +/** + * {@link OutputStream} that sends all data it receives to multiple other output + * streams. If an error occurs during a {@link #write(int)} to one of the + * underlying output streams no guarantees are made about how much data is sent + * to each stream, i.e. there is no good way to recover from such an error. + * + * @author David ‘Bombe’ Roden + */ +public class TeeOutputStream extends OutputStream { + + /** The output streams. */ + private final OutputStream[] outputStreams; + + /** + * Creates a new tee output stream that sends all to all given output + * streams. + * + * @param outputStreams + * The output streams to send all data to + */ + public TeeOutputStream(OutputStream... outputStreams) { + this.outputStreams = outputStreams; + } + + /** + * {@inheritDoc} + *

+ * An effort is made to close all output streams. If multiple exceptions + * occur, only the first exception is thrown after all output streams have + * been tried to close. + */ + @Override + public void close() throws IOException { + IOException occuredException = null; + for (OutputStream outputStream : outputStreams) { + try { + outputStream.flush(); + } catch (IOException ioe1) { + if (occuredException == null) { + occuredException = ioe1; + } + } + } + if (occuredException != null) { + throw occuredException; + } + } + + /** + * {@inheritDoc} + *

+ * An effort is made to flush all output streams. If multiple exceptions + * occur, only the first exception is thrown after all output streams have + * been tried to flush. + */ + @Override + public void flush() throws IOException { + IOException occuredException = null; + for (OutputStream outputStream : outputStreams) { + try { + outputStream.flush(); + } catch (IOException ioe1) { + if (occuredException == null) { + occuredException = ioe1; + } + } + } + if (occuredException != null) { + throw occuredException; + } + } + + /** + * {@inheritDoc} + */ + @Override + public void write(byte[] buffer) throws IOException { + for (OutputStream outputStream : outputStreams) { + outputStream.write(buffer); + } + } + + /** + * {@inheritDoc} + */ + @Override + public void write(byte[] buffer, int offset, int length) throws IOException { + for (OutputStream outputStream : outputStreams) { + outputStream.write(buffer, offset, length); + } + } + + /** + * {@inheritDoc} + */ + @Override + public void write(int data) throws IOException { + for (OutputStream outputStream : outputStreams) { + outputStream.write(data); + } + } + +} diff --git a/src/de/todesbaum/util/io/TempFileInputStream.java b/src/de/todesbaum/util/io/TempFileInputStream.java index 5ebeb9b..43e2047 100644 --- a/src/de/todesbaum/util/io/TempFileInputStream.java +++ b/src/de/todesbaum/util/io/TempFileInputStream.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - TempFileInputStream.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/swing/SortedListModel.java b/src/de/todesbaum/util/swing/SortedListModel.java index 683368c..39a5ce2 100644 --- a/src/de/todesbaum/util/swing/SortedListModel.java +++ b/src/de/todesbaum/util/swing/SortedListModel.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - SortedListModel.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/swing/TLabel.java b/src/de/todesbaum/util/swing/TLabel.java index 6515627..0393f5c 100644 --- a/src/de/todesbaum/util/swing/TLabel.java +++ b/src/de/todesbaum/util/swing/TLabel.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - TLabel.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/swing/TWizard.java b/src/de/todesbaum/util/swing/TWizard.java index 0ccffbc..464ac69 100644 --- a/src/de/todesbaum/util/swing/TWizard.java +++ b/src/de/todesbaum/util/swing/TWizard.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - TWizard.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/swing/TWizardPage.java b/src/de/todesbaum/util/swing/TWizardPage.java index be51b7e..a10b475 100644 --- a/src/de/todesbaum/util/swing/TWizardPage.java +++ b/src/de/todesbaum/util/swing/TWizardPage.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - TWizardPage.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/swing/WizardListener.java b/src/de/todesbaum/util/swing/WizardListener.java index f0ab6b0..987075d 100644 --- a/src/de/todesbaum/util/swing/WizardListener.java +++ b/src/de/todesbaum/util/swing/WizardListener.java @@ -1,6 +1,5 @@ /* - * todesbaum-lib - - * Copyright (C) 2006 David Roden + * jSite - WizardListener.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/de/todesbaum/util/xml/SimpleXML.java b/src/de/todesbaum/util/xml/SimpleXML.java index b41d600..8351581 100644 --- a/src/de/todesbaum/util/xml/SimpleXML.java +++ b/src/de/todesbaum/util/xml/SimpleXML.java @@ -1,4 +1,6 @@ /* + * jSite - SimpleXML.java - Copyright © 2006–2012 David Roden + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or diff --git a/src/de/todesbaum/util/xml/XML.java b/src/de/todesbaum/util/xml/XML.java index 28f8298..8b6b259 100644 --- a/src/de/todesbaum/util/xml/XML.java +++ b/src/de/todesbaum/util/xml/XML.java @@ -1,4 +1,6 @@ /* + * jSite - XML.java - Copyright © 2006–2012 David Roden + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later -- 2.7.4