Package eu.medsea.mimeutil.detector

Examples of eu.medsea.mimeutil.detector.MimeTypeDetector


  /**
   * Process all extension to the extension-point defined by {@link #getExtensionPointID()}
   */
  public void processElement(IExtension extension, IConfigurationElement element) throws Exception
  {
    MimeTypeDetector detector = (MimeTypeDetector) element.createExecutableExtension("class");
    String detectorID = element.getAttribute("detectorID");
    String orderHintStr = element.getAttribute("orderHint");
    int orderHint = 7000;
    if (orderHintStr != null)
      orderHint = Integer.parseInt(orderHintStr);

    detector.setDetectorID(detectorID);
    detector.setOrderHint(orderHint);
    MimeTypeDetectorRegistry.sharedInstance().addMimeTypeDetector(detector);
  }
View Full Code Here

TOP

Related Classes of eu.medsea.mimeutil.detector.MimeTypeDetector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.