Package org.krysalis.barcode4j.tools
Class MimeTypes
java.lang.Object
org.krysalis.barcode4j.tools.MimeTypes
Defines MIME types used in Barcode4J.
- Version:
- $Id: MimeTypes.java,v 1.4 2010-10-05 08:49:10 jmaerki Exp $
- Author:
- Jeremias Maerki
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBMP MIME type: image/bmpstatic final StringEPS MIME type: image/x-epsstatic final StringGIF MIME type: image/gifstatic final StringJPEG MIME type: image/jpegstatic final StringPNG MIME type: image/x-pngstatic final StringSVG MIME type: image/svg+xmlstatic final StringTIFF MIME type: image/tiff -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUtility class: Constructor prevents instantiating when subclassed. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringexpandFormat(String format) Converts a short format name, such as "svg" or "eps", to its MIME type, if necessary.static booleanisBitmapFormat(String format) Indicates whether a format is a bitmap format.
-
Field Details
-
MIME_SVG
SVG MIME type: image/svg+xml- See Also:
-
MIME_EPS
EPS MIME type: image/x-eps- See Also:
-
MIME_TIFF
TIFF MIME type: image/tiff- See Also:
-
MIME_JPEG
JPEG MIME type: image/jpeg- See Also:
-
MIME_PNG
PNG MIME type: image/x-png- See Also:
-
MIME_GIF
GIF MIME type: image/gif- See Also:
-
MIME_BMP
BMP MIME type: image/bmp- See Also:
-
-
Constructor Details
-
MimeTypes
protected MimeTypes()Utility class: Constructor prevents instantiating when subclassed.
-
-
Method Details
-
expandFormat
Converts a short format name, such as "svg" or "eps", to its MIME type, if necessary. Known and unknown MIME types are passed through.- Parameters:
format- short format name or MIME type- Returns:
- MIME type
-
isBitmapFormat
Indicates whether a format is a bitmap format.- Parameters:
format- short format name or MIME type- Returns:
- true if format is a bitmap format
-