Package digilib.meta

Class IndexMetaAuthLoader


  • public class IndexMetaAuthLoader
    extends Object
    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 information from the meta/access tag under the "access" key.
     
       <meta>
         <img>
           <original-dpi>600</original-dpi>
         </img>
         <access-conditions>
           <access type="group">
             <name>digigroup</name>
           </access>
         </access-conditions>
       </meta>
     
     
    Returns a map with filenames and MetadataMaps with directory-wide information under the key "":
       {
       "pageimg/page140r.jpg" : {"original-dpi" : 300}
       "" : { "access" : "group:digigroup", "original-dpi" : 600}, 
       }
     
    Implemented using javax.xml.stream.XMLStreamReader.
    Author:
    Robert Casties
    See Also:
    index.meta spec
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
      • metaTag

        protected String metaTag
      • fileTag

        protected String fileTag
      • fileNamePath

        protected String[] fileNamePath
      • filePathPath

        protected String[] filePathPath
      • fileMetaPath

        protected String[] fileMetaPath
      • imgTag

        protected String imgTag
      • accessTag

        protected String accessTag
      • accessPath

        protected String[] accessPath
      • accessNamePath

        protected String[] accessNamePath
    • Constructor Detail

      • IndexMetaAuthLoader

        public IndexMetaAuthLoader()