Codota Logo
Module
Code IndexAdd Codota to your IDE (free)

How to use
Module
in
edu.harvard.hul.ois.jhove

Best Java code snippets using edu.harvard.hul.ois.jhove.Module (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: openpreserve/jhove

_writer.println (margin + "Module: " + module.getName ());
_writer.println (margin + " Release: " + module.getRelease ());
_writer.println (margin + " Date: " +
         HandlerBase.date.format (module.getDate ()));
String [] ss = module.getFormat ();
if (ss.length > 0) {
  _writer.print (margin + " Format: " + ss[0]);
String s = module.getCoverage ();
if (s != null) {
  _writer.println (margin + " Coverage: " + s);
ss = module.getMimeType ();
if (ss.length > 0) {
  _writer.print (margin + " MIMEtype: " + ss[0]);
for (Signature sig : module.getSignature ()) {
  showSignature (sig);
for (Document spec : module.getSpecification()) {
  showDocument (spec, "Specification");
for (String feature : module.getFeatures ()) {
  _writer.println (margin + "  Feature: " + feature);
if ((s = module.getWellFormedNote ()) != null) {
  _writer.println (margin + "  Well-formed: " + s);
if ((s = module.getValidityNote ()) != null) {
origin: openpreserve/jhove

texta.append (" Module: " + module.getName () + " " +
   module.getRelease () + eol);
origin: openpreserve/jhove

    new DefaultMutableTreeNode ("Module");
moduleNode.add (new DefaultMutableTreeNode 
  (module.getName (), false));
moduleNode.add (new DefaultMutableTreeNode 
  ("Release: " + module.getRelease (), false));
moduleNode.add (new DefaultMutableTreeNode
  ("Date: " + _dateFmt.format (module.getDate ()), false));
add (moduleNode);
origin: openpreserve/jhove

    Class<?> cl = Class.forName(modInfo.clas);
    Module module = (Module) cl.newInstance();
    module.init(modInfo.init);
    module.setDefaultParams(param);
    _moduleMap.put(module.getName().toLowerCase(), module);
    _logger.info("Initialized " + module.getName());
  } catch (Exception e) {
    throw new JhoveException(CoreMessageConstants.EXC_MODL_INST_FAIL
module.setDefaultParams(new ArrayList<String>());
_moduleList.add(module);
_moduleMap.put(module.getName().toLowerCase(), module);
origin: IQSS/dataverse

  logger.fine("Module "+module.getName());
} else {
  logger.fine("module is null!");
    RepInfo infc = (RepInfo) info.clone();
    if (mod.hasFeature("edu.harvard.hul.ois.jhove.canValidate")) {
      if (DEBUG) {
        logger.fine("Trying to apply Jhove module "+mod.getName());
origin: openpreserve/jhove

  @Override
  public int compare (Module o1, Module o2) {
    Module m1 = o1;
    Module m2 = o2;
    String name1 = m1.getName ();
    String name2 = m2.getName ();
    return String.CASE_INSENSITIVE_ORDER.compare (name1, name2);
  }
};
origin: openpreserve/jhove

         info.getUri ());
if (module != null) {
  _writer.println (margin + " ReportingModule: " + module.getName() +
           ", Rel. " + module.getRelease () + " (" +
           date.format (module.getDate ()) + ")");
origin: openpreserve/jhove

while (iter.hasNext ()) {
  Module module = _je.getModule (iter.next ());
  _writer.println (margin + " Module: " + module.getName () + " " +
     module.getRelease ());
origin: openpreserve/jhove

itemName = mod.getName ();
modItem = new JRadioButtonMenuItem (itemName);
modItem.setActionCommand (itemName);
origin: openpreserve/jhove

texta.setText ("");
String margin = getIndent (++_level);
texta.append (margin + "Module: " + module.getName () + eol);
texta.append (margin + "Release: " + module.getRelease () + eol);
texta.append (margin + "Date: " + _dateFmt.format (module.getDate ()) + eol);
String [] ss = module.getFormat ();
if (ss.length > 0) {
  texta.append (margin + "Format: " + ss[0]);
String s = module.getCoverage ();
if (s != null) {
  texta.append (margin + "Coverage: " + s + eol);
ss = module.getMimeType ();
if (ss.length > 0) {
  texta.append (margin + "MIMEtype: " + ss[0]);
for (Signature sig : module.getSignature()) {
  showSignature (sig);
for (Document spec : module.getSpecification ()) {
  showDocument (spec, "Specification");
for (String feature : module.getFeatures ()) {
    texta.append (margin + "  " + feature + "\n");
if ((s = module.getWellFormedNote ()) != null) {
  texta.append (margin + "Well-formed: " + s + eol);
origin: openpreserve/jhove

_writer.println (margin + elementStart ("repInfo", attrs));
if (module != null) {
  String [][] attr2 = { {"release",  module.getRelease ()},
     {"date", date.format (module.getDate())} };
  _writer.println (margn2 + element ("reportingModule", attr2,
                    module.getName ()));
origin: openpreserve/jhove

while (iter.hasNext ()) {
  Module module = _je.getModule (iter.next ());
  String [][] attr2 = { {"release", module.getRelease ()} };
  _writer.println (margn3 + element ("module", attr2,
          module.getName ()));
origin: openpreserve/jhove

_writer.println (margn2 + element ("name", module.getName ()));
_writer.println (margn2 + element ("release",
                     module.getRelease ()));
_writer.println (margn2 + element ("date",
            HandlerBase.date.format (module.getDate ())));
String [] ss = module.getFormat ();
if (ss.length > 0) {
  _writer.println (margn2 + elementStart ("formats"));
String s = module.getCoverage ();
if (s != null) {
  _writer.println (margn2 + element ("coverage", s));
ss = module.getMimeType ();
if (ss.length > 0) {
  _writer.println (margn2 + elementStart ("mimeTypes"));
List list = module.getSignature ();
int n = list.size ();
if (n > 0) {
list = module.getSpecification ();
n = list.size ();
if (n > 0) {
List ftr = module.getFeatures ();
if (ftr != null && !ftr.isEmpty ()) {
  _writer.println (margn2 + elementStart ("features"));
edu.harvard.hul.ois.jhoveModule

Javadoc

Public interface for Jhove format-specific plug-in modules. All format modules must implement the Module interface; usually the best way to do this will be to subclass ModuleBase. Modules must be declared in the configuration file and present in the Classpath to be recognized by Jhove.

Most used methods

  • getName
    Return the name of this Module.
  • getCoverage
    Return details as to the specific format versions or variants that are supported by this Module
  • getDate
    Return the last modification date of the Module, as a Java Date object
  • getFeatures
    Returns the full list of features.
  • getFormat
    Return the array of format names supported by this Module
  • getMimeType
    Return the array of MIME type strings for formats supported by this Module
  • getNote
    Return the Module note
  • getRelease
    Return the release identifier
  • getRepInfoNote
    Returns the RepInfo note
  • getRights
    Return the copyright information string
  • getSignature
    Return the List of Signatures recognized by this Module
  • getSpecification
    Returns a list of Document objects (one for each specification document of the format). The specific
  • getSignature,
  • getSpecification,
  • getValidityNote,
  • getVendor,
  • getWellFormedNote,
  • hasFeature,
  • applyDefaultParams,
  • checkSignatures,
  • init,
  • isRandomAccess

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • putExtra (Intent)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now