com.sun.media
类 BasicPlugIn

java.lang.Object
  继承者 com.sun.media.BasicPlugIn
所有已实现的接口:
Controls, PlugIn
直接已知子类:
BasicCodec

public abstract class BasicPlugIn
extends java.lang.Object
implements PlugIn

basic implementation for the PlugIn interface


字段摘要
protected  java.lang.Object[] controls
           
 
从接口 javax.media.PlugIn 继承的字段
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
构造方法摘要
BasicPlugIn()
           
 
方法摘要
protected  void error()
           
static java.lang.Class getClassForName(java.lang.String className)
           
 java.lang.Object getControl(java.lang.String controlType)
          Return the control based on a control type for the PlugIn.
 java.lang.Object[] getControls()
          no controls
protected  java.lang.Object getInputData(Buffer inBuffer)
           
protected  long getNativeData(java.lang.Object data)
           
protected  java.lang.Object getOutputData(Buffer buffer)
           
static Format matches(Format in, Format[] outs)
          Utility to perform format matching.
static boolean plugInExists(java.lang.String name, int type)
          Check to see if a particular plugin exists in the registry.
protected  byte[] validateByteArraySize(Buffer buffer, int newSize)
          validate that the Buffer object's data size is at least newSize.
protected  java.lang.Object validateData(Buffer buffer, int length, boolean allowNative)
           
protected  int[] validateIntArraySize(Buffer buffer, int newSize)
          validate that the Buffer object's data size is at least newSize.
protected  short[] validateShortArraySize(Buffer buffer, int newSize)
          validate that the Buffer object's data size is at least newSize.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 javax.media.PlugIn 继承的方法
close, getName, open, reset
 

字段详细信息

controls

protected java.lang.Object[] controls
构造方法详细信息

BasicPlugIn

public BasicPlugIn()
方法详细信息

error

protected void error()

getControls

public java.lang.Object[] getControls()
no controls

指定者:
接口 Controls 中的 getControls
返回:
the collection of object controls

getControl

public java.lang.Object getControl(java.lang.String controlType)
Return the control based on a control type for the PlugIn.

指定者:
接口 Controls 中的 getControl
返回:
the object that implements the control, or null.

matches

public static Format matches(Format in,
                             Format[] outs)
Utility to perform format matching.


validateByteArraySize

protected byte[] validateByteArraySize(Buffer buffer,
                                       int newSize)
validate that the Buffer object's data size is at least newSize.

返回:
array with sufficient capacity

validateShortArraySize

protected short[] validateShortArraySize(Buffer buffer,
                                         int newSize)
validate that the Buffer object's data size is at least newSize.

返回:
array with sufficient capacity

validateIntArraySize

protected int[] validateIntArraySize(Buffer buffer,
                                     int newSize)
validate that the Buffer object's data size is at least newSize.

返回:
array with sufficient capacity

getNativeData

protected final long getNativeData(java.lang.Object data)

getInputData

protected java.lang.Object getInputData(Buffer inBuffer)

getOutputData

protected java.lang.Object getOutputData(Buffer buffer)

validateData

protected java.lang.Object validateData(Buffer buffer,
                                        int length,
                                        boolean allowNative)

getClassForName

public static java.lang.Class getClassForName(java.lang.String className)
                                       throws java.lang.ClassNotFoundException
抛出:
java.lang.ClassNotFoundException

plugInExists

public static boolean plugInExists(java.lang.String name,
                                   int type)
Check to see if a particular plugin exists in the registry.