changeset 1159:0fec3e64e95b

more cleaner license headers.
author robcast
date Mon, 25 Feb 2013 11:36:31 +0100
parents 29e86ae1e3b2
children 2ef55acde4c8
files common/src/main/java/digilib/auth/AuthOpException.java common/src/main/java/digilib/auth/AuthOps.java common/src/main/java/digilib/auth/AuthOpsImpl.java common/src/main/java/digilib/auth/XMLAuthOps.java common/src/main/java/digilib/image/DocuImage.java common/src/main/java/digilib/image/DocuImageImpl.java common/src/main/java/digilib/image/ImageInfoDocuImage.java common/src/main/java/digilib/image/ImageJobDescription.java common/src/main/java/digilib/image/ImageLoaderDocuImage.java common/src/main/java/digilib/image/ImageOpException.java common/src/main/java/digilib/image/ImageWorker.java common/src/main/java/digilib/io/AliasingDocuDirCache.java common/src/main/java/digilib/io/Directory.java common/src/main/java/digilib/io/DocuDirCache.java common/src/main/java/digilib/io/DocuDirectory.java common/src/main/java/digilib/io/DocuDirent.java common/src/main/java/digilib/io/DocuDirentImpl.java common/src/main/java/digilib/io/FileOpException.java common/src/main/java/digilib/io/FileOps.java common/src/main/java/digilib/io/ImageCacheStream.java common/src/main/java/digilib/io/ImageFile.java common/src/main/java/digilib/io/ImageFileSet.java common/src/main/java/digilib/io/ImageInput.java common/src/main/java/digilib/io/ImageSet.java common/src/main/java/digilib/io/ImageStream.java common/src/main/java/digilib/io/SVGFile.java common/src/main/java/digilib/io/TextFile.java common/src/main/java/digilib/meta/MetadataMap.java common/src/main/java/digilib/meta/XMLMetaLoader.java common/src/main/java/digilib/servlet/DigilibConfiguration.java common/src/main/java/digilib/servlet/DigilibRequest.java common/src/main/java/digilib/util/DigilibJobCenter.java common/src/main/java/digilib/util/HashTree.java common/src/main/java/digilib/util/ImageSize.java common/src/main/java/digilib/util/NumRange.java common/src/main/java/digilib/util/OptionsSet.java common/src/main/java/digilib/util/Parameter.java common/src/main/java/digilib/util/ParameterMap.java common/src/main/java/digilib/util/XMLListLoader.java servlet2/pom.xml servlet2/src/main/java/digilib/servlet/DigilibServletConfiguration.java servlet2/src/main/java/digilib/servlet/DigilibServletRequest.java servlet2/src/main/java/digilib/servlet/DocumentBean.java servlet2/src/main/java/digilib/servlet/Initialiser.java servlet2/src/main/java/digilib/servlet/Scaler.java servlet2/src/main/java/digilib/servlet/ScalerNoThread.java servlet2/src/main/java/digilib/servlet/ServletOps.java
diffstat 47 files changed, 1033 insertions(+), 609 deletions(-) [+]
line wrap: on
line diff
--- a/common/src/main/java/digilib/auth/AuthOpException.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/auth/AuthOpException.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/*  AuthOpException -- Authentication exception class
-
- Digital Image Library servlet components
-
- Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.auth;
 
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
+/*
+ * #%L
+ * AuthOpException -- Authentication exception class
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.auth;
-
 public class AuthOpException extends Exception {
 
 	private static final long serialVersionUID = 4908131122710826645L;
--- a/common/src/main/java/digilib/auth/AuthOps.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/auth/AuthOps.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,24 +1,29 @@
-/*  AuthOps -- Authentication interface class
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.auth;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-*/
-
-package digilib.auth;
+/*
+ * #%L
+ * AuthOps -- Authentication interface class
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
 
 import java.util.List;
 
--- a/common/src/main/java/digilib/auth/AuthOpsImpl.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/auth/AuthOpsImpl.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,24 +1,29 @@
-/*  AuthOps -- Authentication class implementation
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.auth;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-*/
-
-package digilib.auth;
+/*
+ * #%L
+ *  AuthOps -- Authentication class implementation
+ *
+ *  Digital Image Library servlet components
+ *  
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
 
 import java.util.List;
 
--- a/common/src/main/java/digilib/auth/XMLAuthOps.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/auth/XMLAuthOps.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,24 +1,29 @@
-/* XMLAuthOps -- Authentication class implementation using XML files
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.auth;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-*/
-
-package digilib.auth;
+/*
+ * #%L
+ * XMLAuthOps -- Authentication class implementation using XML files
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
 
 import java.io.File;
 import java.util.List;
--- a/common/src/main/java/digilib/image/DocuImage.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/image/DocuImage.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/* DocuImage -- General image interface class
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2001, 2002, 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.image;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * DocuImage -- General image interface class
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.image;
-
 import java.awt.Rectangle;
 import java.io.IOException;
 import java.io.OutputStream;
--- a/common/src/main/java/digilib/image/DocuImageImpl.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/image/DocuImageImpl.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/* DocuImage -- General image interface class implementation
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2001, 2002, 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.image;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * DocuImage -- General image interface class implementation
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 digilib Community
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.image;
-
 import java.awt.Image;
 import java.awt.Rectangle;
 import java.io.IOException;
--- a/common/src/main/java/digilib/image/ImageInfoDocuImage.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/image/ImageInfoDocuImage.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,30 @@
-/**
+package digilib.image;
+
+/*
+ * #%L
+ * 
+ * Simple abstract implementation of the <code>DocuImage</code> interface.
+ * 
+ * Implements only the identify method using the ImageInfo class.
  * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.image;
 
 import java.io.IOException;
 import java.io.RandomAccessFile;
--- a/common/src/main/java/digilib/image/ImageJobDescription.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/image/ImageJobDescription.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,5 +1,29 @@
 package digilib.image;
 
+/*
+ * #%L
+ * A class for storing the set of parameters necessary for scaling images 
+ * with an ImageWorker.
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
 import java.awt.geom.AffineTransform;
 import java.awt.geom.Rectangle2D;
 import java.io.IOException;
--- a/common/src/main/java/digilib/image/ImageLoaderDocuImage.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/image/ImageLoaderDocuImage.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,24 +1,30 @@
-/* ImageLoaderDocuImage -- Image class implementation using JDK 1.4 ImageLoader
-
- Digital Image Library servlet components
-
- Copyright (C) 2002 - 2011 Robert Casties (robcast@mail.berlios.de)
+package digilib.image;
 
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+/*
+ * #%L
+ * ImageLoaderDocuImage -- Image class implementation using JDK 1.4 ImageLoader
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2002 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.image;
-
 import java.awt.Image;
 import java.awt.Rectangle;
 import java.awt.RenderingHints;
--- a/common/src/main/java/digilib/image/ImageOpException.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/image/ImageOpException.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/* ImageOpException -- Exception class for image operations
-
- Digital Image Library servlet components
-
- Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.image;
 
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
+/*
+ * #%L
+ * ImageOpException -- Exception class for image operations
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.image;
-
 public class ImageOpException extends Exception {
 
     private static final long serialVersionUID = -8662921779682407942L;
--- a/common/src/main/java/digilib/image/ImageWorker.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/image/ImageWorker.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/** Worker (Callable) that renders an image.
+package digilib.image;
+
+/*
+ * #%L
+ * Worker (Callable) that renders an image.
+ * %%
+ * Copyright (C) 2010 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.image;
 
 import java.awt.Rectangle;
 import java.io.IOException;
--- a/common/src/main/java/digilib/io/AliasingDocuDirCache.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/AliasingDocuDirCache.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,27 +1,32 @@
+package digilib.io;
+
 /*
+ * #%L
  * AliasingDocuDirCache -- DocuDirCache using alias entries from config file
  * 
  * Digital Image Library servlet components
  * 
- * Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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 version.
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * 
  * Created on 04.11.2003
  */
 
-package digilib.io;
-
 import java.io.File;
 import java.util.Map;
 import java.util.Map.Entry;
--- a/common/src/main/java/digilib/io/Directory.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/Directory.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,31 @@
-/* Directory -- Filesystem directory object
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.io;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * 
+ * Directory -- Filesystem directory object
+ * 
+ * Digital Image Library servlet components
+ *  
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 26.08.2003
- *
  */
-package digilib.io;
 
 import java.io.File;
 import java.util.Arrays;
--- a/common/src/main/java/digilib/io/DocuDirCache.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/DocuDirCache.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,27 +1,31 @@
+package digilib.io;
+
 /*
+ * #%L
  * DocuDirCache.java
  * 
  * Digital Image Library servlet components
  * 
- * Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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 version.
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 03.03.2003
  */
 
-package digilib.io;
-
 import java.io.File;
 import java.util.LinkedList;
 import java.util.List;
--- a/common/src/main/java/digilib/io/DocuDirectory.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/DocuDirectory.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,31 @@
-/* DocuDirectory -- Directory of DocuFilesets.
-
- Digital Image Library servlet components
-
- Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.io;
 
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * DocuDirectory -- Directory of DocuFilesets.
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 25.02.2003
  */
 
-package digilib.io;
-
 import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
--- a/common/src/main/java/digilib/io/DocuDirent.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/DocuDirent.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,5 +1,29 @@
 package digilib.io;
 
+/*
+ * #%L
+ * DocuDirent.java
+ * 
+ * Interface for a entry in a Directory.
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
 import java.io.File;
 
 import digilib.meta.MetadataMap;
--- a/common/src/main/java/digilib/io/DocuDirentImpl.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/DocuDirentImpl.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,28 @@
+package digilib.io;
+
 /*
- * DocuDirent.java -- Abstract directory entry in a DocuDirectory
+ * #%L
+ * DocuDirentImpl.java -- Abstract directory entry in a DocuDirectory
  * 
  * Digital Image Library servlet components
- * 
- * Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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 version.
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- * 
- * Created on 15.09.2003 by casties
- *  
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.io;
 
 import java.io.File;
 import java.util.Map;
--- a/common/src/main/java/digilib/io/FileOpException.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/FileOpException.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,29 @@
-/*  FileOpException -- Exception class for file operations
-
- Digital Image Library servlet components
-
- Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.io;
 
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
+/*
+ * #%L
+ * FileOpException -- Exception class for file operations
+ * 
+ * Digital Image Library servlet components
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.io;
-
 import java.io.IOException;
 
 public class FileOpException extends IOException {
--- a/common/src/main/java/digilib/io/FileOps.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/FileOps.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,30 @@
+package digilib.io;
+
 /*
+ * #%L
  * FileOps -- Utility class for file operations
  * 
  * Digital Image Library servlet components
  * 
- * Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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 version.
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- *  
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.io;
-
 import java.io.File;
 import java.io.FileFilter;
 import java.util.ArrayList;
--- a/common/src/main/java/digilib/io/ImageCacheStream.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/ImageCacheStream.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/**
+package digilib.io;
+
+/*
+ * #%L
+ * An ImageInput that uses a caching ImageStream.
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.io;
 
 import java.io.IOException;
 import java.io.InputStream;
--- a/common/src/main/java/digilib/io/ImageFile.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/ImageFile.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/* ImageFile.java -- digilib image file class.
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.io;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * ImageFile.java -- digilib image file class.
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 25.02.2003
  */
- 
-package digilib.io;
 
 import java.io.File;
 import java.io.IOException;
--- a/common/src/main/java/digilib/io/ImageFileSet.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/ImageFileSet.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/**
+package digilib.io;
+
+/*
+ * #%L
+ * ImageSet collecting ImageFiles at different resolutions.
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.io;
 
 import java.io.File;
 import java.util.ArrayList;
--- a/common/src/main/java/digilib/io/ImageInput.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/ImageInput.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,31 @@
-/* ImageInput-- digilib image input interface.
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2010 Robert Casties (robcast@mail.berlios.de)
+package digilib.io;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * ImageInput-- digilib image input interface.
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2010 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 20.12.2010
  */
 
-package digilib.io;
-
 import java.io.File;
 import java.io.InputStream;
 
--- a/common/src/main/java/digilib/io/ImageSet.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/ImageSet.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,22 +1,30 @@
-/* ImageSet -- digilib image file info class.  
- * Digital Image Library servlet components  
- * Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)  
- * 
- * 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 version.  
+package digilib.io;
+
+/*
+ * #%L
+ * ImageSet -- digilib class for image file information at different resolutions.
+ *   
+ * Digital Image Library servlet components
+ *   
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be 
- * found at http://www.gnu.org/copyleft/lgpl.html  
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along 
- * with this program; if not, write to the Free Software Foundation, Inc., 
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.io;
-
 import java.util.ArrayList;
 import java.util.List;
 import java.util.ListIterator;
--- a/common/src/main/java/digilib/io/ImageStream.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/ImageStream.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/**
+package digilib.io;
+
+/*
+ * #%L
+ * ImageInput backed by an InputStream.
+ * %%
+ * Copyright (C) 2011 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.io;
 
 import java.io.InputStream;
 
--- a/common/src/main/java/digilib/io/SVGFile.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/SVGFile.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/* SVGFile -- Class for SVG files
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.io;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * SVGFile -- Class for SVG files
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 25.11.2003 by casties
- *
  */
-package digilib.io;
 
 import java.io.File;
 
--- a/common/src/main/java/digilib/io/TextFile.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/io/TextFile.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/* TextFile.java -- Class for text files
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.io;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * TextFile.java -- Class for text files
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 digilib Community
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 15.09.2003 by casties
- *
  */
-package digilib.io;
 
 import java.io.File;
 
--- a/common/src/main/java/digilib/meta/MetadataMap.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/meta/MetadataMap.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/**
+package digilib.meta;
+
+/*
+ * #%L
+ * Map for metadata related to files.
+ * %%
+ * Copyright (C) 2010 - 2013 digilib Community
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.meta;
 
 import java.util.HashMap;
 
--- a/common/src/main/java/digilib/meta/XMLMetaLoader.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/meta/XMLMetaLoader.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,24 +1,29 @@
-/* XMLMetaLoader -- Load an XML format metadata into a Hashtable
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.meta;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-*/
-
-package digilib.meta;
+/*
+ * #%L
+ * XMLMetaLoader -- Load an XML format metadata into a Hashtable
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
 
 import java.io.IOException;
 import java.util.HashMap;
--- a/common/src/main/java/digilib/servlet/DigilibConfiguration.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/servlet/DigilibConfiguration.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,29 @@
+package digilib.servlet;
+
 /*
+ * #%L
  * DigilibConfiguration -- Holding all parameters for digilib servlet.
  * 
  * Digital Image Library servlet components
- * 
- * Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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 version.
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- *  
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.servlet;
-
 import java.io.IOException;
 
 import org.apache.log4j.BasicConfigurator;
--- a/common/src/main/java/digilib/servlet/DigilibRequest.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/servlet/DigilibRequest.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,31 +1,31 @@
+package digilib.servlet;
+
 /*
+ * #%L
  * DigilibRequest.java
  *
  * lightweight class carrying all parameters for a request to digilib
- *
-
- Digital Image Library servlet components
-
- Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de),
- Christian Luginbuehl
-
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- * Created on 27. August 2002, 19:43
+ * %%
+ * Copyright (C) 2002 - 2013 Robert Casties (robcast@mail.berlios.de),
+ *                           Christian Luginbuehl
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ * Created on 27. August 2002
  */
 
-package digilib.servlet;
-
 import java.io.UnsupportedEncodingException;
 import java.net.URLDecoder;
 import java.util.StringTokenizer;
--- a/common/src/main/java/digilib/util/DigilibJobCenter.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/DigilibJobCenter.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/** Wrapper around ExecutionService.
+package digilib.util;
+
+/*
+ * #%L
+ * Wrapper around ExecutionService.
+ * %%
+ * Copyright (C) 2010 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.util;
 
 import java.util.List;
 import java.util.concurrent.BlockingQueue;
--- a/common/src/main/java/digilib/util/HashTree.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/HashTree.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/*  HashTree -- Tree in a Hashtable
-
- Digital Image Library servlet components
-
- Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.util;
 
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+/*
+ * #%L
+ * HashTree -- Tree in a Hashtable
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.util;
-
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
--- a/common/src/main/java/digilib/util/ImageSize.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/ImageSize.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,19 +1,31 @@
+package digilib.util;
+
 /*
- * ImageSize.java -- digilib image size class. 
- * Digital Image Library servlet components 
- * Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de) 
- * 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
- * version. Please read license.txt for the full details. A copy of the GPL may
- * be found at http://www.gnu.org/copyleft/lgpl.html You should have received a
- * copy of the GNU General Public License along with this program; if not,
- * write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307 USA Created on 26.08.2003
+ * #%L
+ * ImageSize.java -- digilib image size class.
+ *  
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ * Created on 26.08.2003
  */
 
-package digilib.util;
-
 /** Class for image size (width, height).
  * 
  * A width or height of 0 is treated as a 'wildcard' that matches any size.
--- a/common/src/main/java/digilib/util/NumRange.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/NumRange.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/**
+package digilib.util;
+
+/*
+ * #%L
+ * Class handling numerical ranges.
+ * %%
+ * Copyright (C) 2010 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.util;
 
 import java.util.ArrayList;
 import java.util.Collections;
--- a/common/src/main/java/digilib/util/OptionsSet.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/OptionsSet.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,7 +1,26 @@
-/**
+package digilib.util;
+
+/*
+ * #%L
+ * Set for option flags.
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
-package digilib.util;
 
 import java.util.HashSet;
 import java.util.StringTokenizer;
--- a/common/src/main/java/digilib/util/Parameter.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/Parameter.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,30 @@
-/* Parameter -- General digilib parameter class.
-
- Digital Image Library servlet components
-
- Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.util;
 
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- 
- *
+/*
+ * #%L
+ * Parameter -- General digilib parameter class.
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 02.09.2003 by casties
- * 
  */
-package digilib.util;
 
 import java.io.File;
 import java.io.IOException;
--- a/common/src/main/java/digilib/util/ParameterMap.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/ParameterMap.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,25 +1,30 @@
-/* ParameterMap.java -- HashMap of Parameters.
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+package digilib.util;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
+/*
+ * #%L
+ * ParameterMap.java -- HashMap of Parameters.
+ * 
+ * Digital Image Library servlet components
+ * 
+ * %%
+ * Copyright (C) 2003 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  * Created on 02.09.2003 by casties
- *
  */
-package digilib.util;
 
 import java.util.HashMap;
 
--- a/common/src/main/java/digilib/util/XMLListLoader.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/common/src/main/java/digilib/util/XMLListLoader.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,24 +1,29 @@
-/* XMLListLoader -- Load an XML list into a Hashtable
-
-  Digital Image Library servlet components
-
-  Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
+package digilib.util;
 
-  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 version.
-   
-  Please read license.txt for the full details. A copy of the GPL
-  may be found at http://www.gnu.org/copyleft/lgpl.html
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-*/
-
-package digilib.util;
+/*
+ * #%L
+ * XMLListLoader -- Load an XML list into a Map
+ * 
+ * Digital Image Library servlet components
+ *
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
 
 // JAXP packages
 import java.io.IOException;
--- a/servlet2/pom.xml	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/pom.xml	Mon Feb 25 11:36:31 2013 +0100
@@ -10,7 +10,6 @@
   <artifactId>digilib-servlet2</artifactId>
   <name>digilib-servlet2</name>
   <description>The Digital Image Library - Servlet with version 2 API</description>
-  <url>http://maven.apache.org</url>
   <packaging>jar</packaging>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
--- a/servlet2/src/main/java/digilib/servlet/DigilibServletConfiguration.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/src/main/java/digilib/servlet/DigilibServletConfiguration.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,33 +1,36 @@
+package digilib.servlet;
+
 /*
+ * #%L
  * DigilibConfiguration -- Holding all parameters for digilib servlet.
  * 
  * Digital Image Library servlet components
  * 
- * Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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 version.
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- *  
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.servlet;
-
 import java.io.File;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.concurrent.atomic.AtomicInteger;
 
 import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
 
 import digilib.image.DocuImageImpl;
 import digilib.io.FileOps;
--- a/servlet2/src/main/java/digilib/servlet/DigilibServletRequest.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/src/main/java/digilib/servlet/DigilibServletRequest.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,31 +1,30 @@
+package digilib.servlet;
+
 /*
+ * #%L
  * DigilibRequest.java
  *
  * lightweight class carrying all parameters for a request to digilib
- *
-
- Digital Image Library servlet components
-
- Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de),
- Christian Luginbuehl
-
- 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 version.
- 
- Please read license.txt for the full details. A copy of the GPL
- may be found at http://www.gnu.org/copyleft/lgpl.html
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- * Created on 27. August 2002, 19:43
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de),
+ *                           Christian Luginbuehl
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.servlet;
-
 import java.io.UnsupportedEncodingException;
 import java.net.URLDecoder;
 import java.util.Enumeration;
--- a/servlet2/src/main/java/digilib/servlet/DocumentBean.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/src/main/java/digilib/servlet/DocumentBean.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,30 @@
+package digilib.servlet;
+
 /*
+ * #%L
  * DocumentBean -- Access control bean for JSP
  *
  * Digital Image Library servlet components
- *
- * Copyright (C) 2001, 2002, 2003 Robert Casties (robcast@mail.berlios.de)
- *
- * 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
- * version.
- *
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ * 
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.servlet;
-
 import java.util.List;
 
 import javax.servlet.ServletConfig;
--- a/servlet2/src/main/java/digilib/servlet/Initialiser.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/src/main/java/digilib/servlet/Initialiser.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,24 +1,32 @@
-/* Initialiser.java -- initalisation servlet for setup tasks
+package digilib.servlet;
+
+/*
+ * #%L
+ * 
+ * Initialiser.java -- initalisation servlet for setup tasks
  * 
  * Digital Image Library servlet components
  * 
- * Copyright (C) 2004 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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 version.
+ * %%
+ * Copyright (C) 2004 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- *  
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ * 
  * Created on 18.10.2004
  */
-package digilib.servlet;
 
 import java.io.File;
 import java.io.OutputStream;
--- a/servlet2/src/main/java/digilib/servlet/Scaler.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/src/main/java/digilib/servlet/Scaler.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,5 +1,29 @@
 package digilib.servlet;
 
+/*
+ * #%L
+ * 
+ * Scaler servlet that uses a thread pool but only synchronous servlet 2.3 API.
+ *  
+ * %%
+ * Copyright (C) 2004 - 2013 Robert Casties (robcast@berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
 import java.io.File;
 import java.io.IOException;
 import java.util.List;
--- a/servlet2/src/main/java/digilib/servlet/ScalerNoThread.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/src/main/java/digilib/servlet/ScalerNoThread.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,5 +1,27 @@
 package digilib.servlet;
 
+/*
+ * #%L
+ * Scaler servlet that uses no thread pool any only synchronous servlet 2.3 API.
+ * %%
+ * Copyright (C) 2011 - 2013 Robert Casties (robcast@berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
 import java.io.File;
 import java.io.IOException;
 import java.util.List;
--- a/servlet2/src/main/java/digilib/servlet/ServletOps.java	Sun Feb 24 11:18:58 2013 +0100
+++ b/servlet2/src/main/java/digilib/servlet/ServletOps.java	Mon Feb 25 11:36:31 2013 +0100
@@ -1,26 +1,30 @@
+package digilib.servlet;
+
 /*
+ * #%L
  * ServletOps -- Servlet utility class
  * 
  * Digital Image Library servlet components
  * 
- * Copyright (C) 2001, 2002 Robert Casties (robcast@mail.berlios.de)
- * 
- * 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
- * version.
+ * %%
+ * Copyright (C) 2001 - 2013 Robert Casties (robcast@mail.berlios.de)
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as 
+ * published by the Free Software Foundation, either version 3 of the 
+ * License, or (at your option) any later version.
  * 
- * Please read license.txt for the full details. A copy of the GPL may be found
- * at http://www.gnu.org/copyleft/lgpl.html
+ * 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 Lesser Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- *  
+ * You should have received a copy of the GNU General Lesser Public 
+ * License along with this program.  If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
  */
 
-package digilib.servlet;
-
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;