Package com.adobe.epubcheck.util

Examples of com.adobe.epubcheck.util.EPUBVersion


    if (epack == null)
    {
      return;
    }

    EPUBVersion version = epack.getVersion();
    outWriter.println(String.format(Messages.get("validating_against_epub_version"), version));

    if (version != null && version.equals(EPUBVersion.VERSION_3))
    {
      factory.newInstance(report, ValidationType.RENDITION, epack).validate();
      factory.newInstance(report, ValidationType.CFI, epack).validate();
      factory.newInstance(report, ValidationType.METADATA_V3, epack).validate();
      factory.newInstance(report, ValidationType.NAV, epack).validate();
View Full Code Here


    }


    // Detect the version of the first root file
    // and compare with the asked version (if set)
    EPUBVersion detectedVersion = null;
    EPUBVersion validationVersion;
    OPFData opfData = ocf.getOpfData().get(opfPaths.get(0));
    if (opfData == null)
        return;// The error must have been reported during parsing
    detectedVersion = opfData.getVersion();
    report.info(null, FeatureEnum.FORMAT_VERSION, detectedVersion.toString());
View Full Code Here

TOP

Related Classes of com.adobe.epubcheck.util.EPUBVersion

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.