changeset 1512:feebfabae016

better comments.
author robcast
date Wed, 04 May 2016 16:33:18 +0200
parents 7995afe760a8
children 2bee7503ff87
files common/src/main/java/digilib/meta/IndexMetaAuthLoader.java
diffstat 1 files changed, 26 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/common/src/main/java/digilib/meta/IndexMetaAuthLoader.java	Mon May 02 20:21:17 2016 +0200
+++ b/common/src/main/java/digilib/meta/IndexMetaAuthLoader.java	Wed May 04 16:33:18 2016 +0200
@@ -38,16 +38,38 @@
  * License along with this program.  If not, see
  * <http://www.gnu.org/licenses/lgpl-3.0.html>.
  * #L%
- * Author: Robert Casties (robcast@berlios.de)
+ * Author: Robert Casties (robcast@users.sourceforge.net)
  */
 
 /**
- * Class loading index.meta files extracting some image file related information.
+ * Class loading index.meta files extracting image file related information.
  * 
  * Extracts into the MetadataMap all tags in the meta/img tag as key-value
- * pairs and access conditions under the access key.
+ * pairs and information from the meta/access tag under the "access" key.
  * 
- * Returns a map with filenames and MetadataMaps.
+ * <pre>
+ * {@code
+ *   <meta>
+ *     <img>
+ *       <original-dpi>600</original-dpi>
+ *     </img>
+ *     <access-conditions>
+ *       <access type="group">
+ *         <name>digigroup</name>
+ *       </access>
+ *     </access-conditions>
+ *   </meta>
+ * }
+ * </pre>
+ * 
+ * Returns a map with filenames and MetadataMaps with directory-wide information 
+ * under the key "":
+ * <pre>
+ *   {
+ *   "pageimg/page140r.jpg" : {"original-dpi" : 300}
+ *   "" : { "access" : "group:digigroup", "original-dpi" : 600}, 
+ *   }
+ * </pre>
  * 
  * Implemented using javax.xml.stream.XMLStreamReader.
  *