Enum OleBlob.ContentType
- java.lang.Object
-
- java.lang.Enum<OleBlob.ContentType>
-
- com.healthmarketscience.jackcess.util.OleBlob.ContentType
-
- All Implemented Interfaces:
Serializable,Comparable<OleBlob.ContentType>
- Enclosing interface:
- OleBlob
public static enum OleBlob.ContentType extends Enum<OleBlob.ContentType>
Enum describing the types of blob contents which are currently supported/understood
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPOUND_STORAGEthe blob contents are a complex embedded data known as compound storage (aka OLE2).LINKthe blob contents are a link (file path) to some external content.OTHERthe top-level blob wrapper is understood, but the nested blob contents are unknown, probably just some embedded content.SIMPLE_PACKAGEthe blob contents are a simple wrapper around some embedded content and related file names/paths.UNKNOWNthe top-level blob wrapper is not understood (this may not be a valid ole instance).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OleBlob.ContentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OleBlob.ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINK
public static final OleBlob.ContentType LINK
the blob contents are a link (file path) to some external content. Content will be an instance of LinkContent
-
SIMPLE_PACKAGE
public static final OleBlob.ContentType SIMPLE_PACKAGE
the blob contents are a simple wrapper around some embedded content and related file names/paths. Content will be an instance SimplePackageContent
-
COMPOUND_STORAGE
public static final OleBlob.ContentType COMPOUND_STORAGE
the blob contents are a complex embedded data known as compound storage (aka OLE2). Working with compound storage requires the optional POI library. Content will be an instance of CompoundContent. If the POI library is not available on the classpath, then compound storage data will instead be returned as typeOTHER.
-
OTHER
public static final OleBlob.ContentType OTHER
the top-level blob wrapper is understood, but the nested blob contents are unknown, probably just some embedded content. Content will be an instance of OtherContent
-
UNKNOWN
public static final OleBlob.ContentType UNKNOWN
the top-level blob wrapper is not understood (this may not be a valid ole instance). Content will simply be an instance of Content (the data can be accessed from the main blob instance)
-
-
Method Detail
-
values
public static OleBlob.ContentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OleBlob.ContentType c : OleBlob.ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OleBlob.ContentType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-