Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.content.type
Class ContentTypeFactory

java.lang.Object
  extended by oracle.irm.engine.content.type.ContentTypeFactory


public final class ContentTypeFactory
extends Object

Content Type factory. This class provides methods for creating new instances of ContentType objects.


Method Summary
static ContentType createContentType(String[] extensions, String sealedExtension, String sealedMimeType, String[] mimeTypes, boolean expectOverwrites)
          Create a content type.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

createContentType

public static ContentType createContentType(String[] extensions,
                                            String sealedExtension,
                                            String sealedMimeType,
                                            String[] mimeTypes,
                                            boolean expectOverwrites)
Create a content type.
Parameters:
extensions - unsealed file extensions. Absence of unsealed file extensions infers that the content type does not have an unsealed equivalent. e.g. sealed email. This parameter is optional, it is valid to pass null.
sealedExtension - corresponding sealed file extension.
sealedMimeType - sealed MIME type.
mimeTypes - the unsealed MIME types that correspond to the specified file extension(s). Absence of unsealed MIME types infers that the content type does not have an unsealed equivalent. e.g. sealed email. This parameter is optional, it is valid to pass null.
expectOverwrites - content format that supports edits.
Returns:
a new Content Type instance.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.