Package org.apache.tika.metadata
Enum TikaCoreProperties.EmbeddedResourceType
- java.lang.Object
-
- java.lang.Enum<TikaCoreProperties.EmbeddedResourceType>
-
- org.apache.tika.metadata.TikaCoreProperties.EmbeddedResourceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TikaCoreProperties.EmbeddedResourceType>
- Enclosing interface:
- TikaCoreProperties
public static enum TikaCoreProperties.EmbeddedResourceType extends java.lang.Enum<TikaCoreProperties.EmbeddedResourceType>
A file might contain different types of embedded documents. The most common is the ATTACHMENT.An INLINE embedded resource should be used for embedded image files that are used to render the page image (as in PDXObjImages in PDF files).
A MACRO is code that is embedded in the document and is intended to be executable within the application that opens the document. This includes traditional macros within Microsoft Office files and javascript within PDFActions. This would not include, e.g., an .exe file embedded in a .zip file.
Not all parsers have yet implemented this.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TikaCoreProperties.EmbeddedResourceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TikaCoreProperties.EmbeddedResourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INLINE
public static final TikaCoreProperties.EmbeddedResourceType INLINE
-
ATTACHMENT
public static final TikaCoreProperties.EmbeddedResourceType ATTACHMENT
-
MACRO
public static final TikaCoreProperties.EmbeddedResourceType MACRO
-
METADATA
public static final TikaCoreProperties.EmbeddedResourceType METADATA
-
FONT
public static final TikaCoreProperties.EmbeddedResourceType FONT
-
THUMBNAIL
public static final TikaCoreProperties.EmbeddedResourceType THUMBNAIL
-
-
Method Detail
-
values
public static TikaCoreProperties.EmbeddedResourceType[] 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 (TikaCoreProperties.EmbeddedResourceType c : TikaCoreProperties.EmbeddedResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TikaCoreProperties.EmbeddedResourceType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-