|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javax.media.PlugInManager
The PlugInManager is used to search for installed plug-ins and
register new plug-ins.
This PlugInManager is a wrapper for the actual implementation, which it
expects to find in javax.media.pim.PlugInManager. If this implementation
exists and is an instance of javax.media.PlugInManager, all calls to
javax.media.PlugInManager are redirected to javax.media.pim.PlugInManager.
If the implementation is not found, all calls to javax.media.PlugInManager methods
will fail and return null or invalid data.
| Field Summary | |
static int |
CODEC
Codec plug-in type. |
static int |
DEMULTIPLEXER
Demultiplexer plug-in type. |
static int |
EFFECT
Effect plug-in type. |
static int |
MULTIPLEXER
Multiplexer plug-in type. |
static int |
RENDERER
Renderer plug-in type. |
| Constructor Summary | |
PlugInManager()
|
|
| Method Summary | |
static boolean |
addPlugIn(java.lang.String classname,
Format[] in,
Format[] out,
int type)
Registers a new plug-in. |
static void |
commit()
Commits any changes made to the plug-in list. |
static java.util.Vector |
getPlugInList(Format input,
Format output,
int type)
Builds a list of plug-ins that satisfy the specified plug-in type and input and output formats. |
static Format[] |
getSupportedInputFormats(java.lang.String className,
int type)
Gets a list of the input formats that the specified plug-in supports. |
static Format[] |
getSupportedOutputFormats(java.lang.String className,
int type)
Gets a list of the output formats that the specified plug-in supports. |
static boolean |
removePlugIn(java.lang.String classname,
int type)
Removes an existing plug-in from the registry. |
static void |
setPlugInList(java.util.Vector plugins,
int type)
Sets the search order for the plug-ins of the specified type. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int DEMULTIPLEXER
public static final int CODEC
public static final int EFFECT
public static final int RENDERER
public static final int MULTIPLEXER
| Constructor Detail |
public PlugInManager()
| Method Detail |
public static java.util.Vector getPlugInList(Format input,
Format output,
int type)
input is null, getPlugInList
returns a list of plug-ins of the specified type that match the output format. If output is
null, getPlugInList returns a list of plug-ins of the specified type that match the input format.
If both parameters are null, getPlugInList returns a list of all of the
plug-ins of the specified type.input - The input Format to be supported by the plug-in.output - The output Format to be generated by the plug-in.type - The type of plug-in to search for, for example:
DEMULTIPLEXER, CODEC, EFFECT,
MULTIPLEXER, or RENDERER.Vector that contains the plug-in list.
public static void setPlugInList(java.util.Vector plugins,
int type)
Processor.)
This list is valid
for the duration of the session only, unless commit is
called.plugins - A Vector that lists the plug-ins in the order that they
should be searched.type - The type of plug-in contained in the search list, for example:
DEMULTIPLEXER, CODEC, EFFECT,
MULTIPLEXER, or RENDERER.commit()
public static void commit()
throws java.io.IOException
commit method must be called when a plug-in is added or removed
to make the change permanent.
Changes to the search
order can also be made permanent by calling commit.
public static boolean addPlugIn(java.lang.String classname,
Format[] in,
Format[] out,
int type)
Processor is created.
Registration will fail if a plug-in of the same name
already exists. The commit method has to be called to make the
addition permanent.classname - A String that contains the class name of the new plug-in.in - A Format array that contains the input formats that the plug-in supports.out - A Format array that contains the output formats that the plug-in supports.type - The type of the new plug-in, for example:
DEMULTIPLEXER, CODEC, EFFECT,
MULTIPLEXER, or RENDERER.true if the plug-in is registered successfully, false if it could
not be registered.
public static boolean removePlugIn(java.lang.String classname,
int type)
commit method has
to be called to make this change permanent.classname - A String that contains the class name of the plug-in to be removed.type - The type of the new plug-in, for example:
DEMULTIPLEXER, CODEC, EFFECT,
MULTIPLEXER, or RENDERER.true if the plug-in is succesfully removed, false if
no plug-in with the specified name could be found.
public static Format[] getSupportedInputFormats(java.lang.String className,
int type)
className - The plug-in class name. For example: com.sun.media.codec.MPEGtype - The type of the specified plug-in, for example:
DEMULTIPLEXER, CODEC, EFFECT,
MULTIPLEXER, or RENDERER.Format objects that the specified plug-in can accept
as input. Returns an array of zero elements if
specified plug-in is not registered or has no inputs.
public static Format[] getSupportedOutputFormats(java.lang.String className,
int type)
className - The plug-in class name. For example: com.sun.media.codec.MPEGtype - The type of the specified plug-in, for example:
DEMULTIPLEXER, CODEC, EFFECT,
MULTIPLEXER, or RENDERER.Format objects that the specified plug-in can generate
as output. Returns an array of zero elements if
specified plug-in is not registered or has no outputs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||