barcode4j 2.1.0

org.krysalis.barcode4j.tools
Class MimeTypes

java.lang.Object
  extended by org.krysalis.barcode4j.tools.MimeTypes

public class MimeTypes
extends java.lang.Object

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
static java.lang.String MIME_BMP
          BMP MIME type: image/bmp
static java.lang.String MIME_EPS
          EPS MIME type: image/x-eps
static java.lang.String MIME_GIF
          GIF MIME type: image/gif
static java.lang.String MIME_JPEG
          JPEG MIME type: image/jpeg
static java.lang.String MIME_PNG
          PNG MIME type: image/x-png
static java.lang.String MIME_SVG
          SVG MIME type: image/svg+xml
static java.lang.String MIME_TIFF
          TIFF MIME type: image/tiff
 
Constructor Summary
protected MimeTypes()
          Utility class: Constructor prevents instantiating when subclassed.
 
Method Summary
static java.lang.String expandFormat(java.lang.String format)
          Converts a short format name, such as "svg" or "eps", to its MIME type, if necessary.
static boolean isBitmapFormat(java.lang.String format)
          Indicates whether a format is a bitmap format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIME_SVG

public static final java.lang.String MIME_SVG
SVG MIME type: image/svg+xml

See Also:
Constant Field Values

MIME_EPS

public static final java.lang.String MIME_EPS
EPS MIME type: image/x-eps

See Also:
Constant Field Values

MIME_TIFF

public static final java.lang.String MIME_TIFF
TIFF MIME type: image/tiff

See Also:
Constant Field Values

MIME_JPEG

public static final java.lang.String MIME_JPEG
JPEG MIME type: image/jpeg

See Also:
Constant Field Values

MIME_PNG

public static final java.lang.String MIME_PNG
PNG MIME type: image/x-png

See Also:
Constant Field Values

MIME_GIF

public static final java.lang.String MIME_GIF
GIF MIME type: image/gif

See Also:
Constant Field Values

MIME_BMP

public static final java.lang.String MIME_BMP
BMP MIME type: image/bmp

See Also:
Constant Field Values
Constructor Detail

MimeTypes

protected MimeTypes()
Utility class: Constructor prevents instantiating when subclassed.

Method Detail

expandFormat

public static java.lang.String expandFormat(java.lang.String format)
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

public static boolean isBitmapFormat(java.lang.String format)
Indicates whether a format is a bitmap format.

Parameters:
format - short format name or MIME type
Returns:
true if format is a bitmap format

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.