Class BitmapChecker
java.lang.Object
org.w3c.epubcheck.core.AbstractChecker
com.adobe.epubcheck.opf.PublicationResourceChecker
com.adobe.epubcheck.bitmap.BitmapChecker
- All Implemented Interfaces:
Checker
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final longprivate static final intFields inherited from class AbstractChecker
context, report -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprivate voidcheckHeader(byte[] header) private voidprivate static FilegetImageFile(OCFContainer container, io.mola.galimatias.URL imageURL) private BitmapChecker.ImageHeuristicsGets image dimensions for given fileprivate static FilegetTempImageFile(OCFContainer container, io.mola.galimatias.URL imageURL) Methods inherited from class PublicationResourceChecker
check, checkPublicationAfterContent, checkPublicationBeforeContent
-
Field Details
-
HEIGHT_MAX
private static final int HEIGHT_MAX- See Also:
-
WIDTH_MAX
private static final int WIDTH_MAX- See Also:
-
IMAGESIZE_MAX
private static final long IMAGESIZE_MAX- See Also:
-
-
Constructor Details
-
BitmapChecker
-
-
Method Details
-
checkHeader
private void checkHeader(byte[] header) -
getImageSizes
Gets image dimensions for given file- Returns:
- dimensions of image
- Throws:
IOException- if the file is not a known image
-
getImageFile
private static File getImageFile(OCFContainer container, io.mola.galimatias.URL imageURL) throws IOException - Throws:
IOException
-
getTempImageFile
private static File getTempImageFile(OCFContainer container, io.mola.galimatias.URL imageURL) throws IOException - Throws:
IOException
-
checkImageDimensions
private void checkImageDimensions() -
checkContent
protected boolean checkContent()- Overrides:
checkContentin classPublicationResourceChecker
-