Enum OleBlob.ContentType

    • 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 type OTHER.
      • 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 name
        NullPointerException - if the argument is null