FileDocCategorySizeDatePackage
ExtBuffer.javaAPI DocJMF 2.1.1e1518Mon May 12 12:20:50 BST 2003com.sun.media

ExtBuffer

public class ExtBuffer extends Buffer

Fields Summary
protected NBA
nativeData
protected boolean
nativePreferred
Constructors Summary
Methods Summary
public voidcopy(javax.media.Buffer buffer, boolean swap)
Copy the attributes from the specified Buffer into this Buffer

param
buffer The input Buffer the copy the attributes from.

	super.copy(buffer, swap);
	if (buffer instanceof ExtBuffer) {
	    ExtBuffer fromBuf = (ExtBuffer) buffer;
	    if (swap) {
		NBA temp = fromBuf.nativeData;
		fromBuf.nativeData = nativeData;
		nativeData = temp;
		boolean prefer = fromBuf.nativePreferred;
		fromBuf.nativePreferred = nativePreferred;
		nativePreferred = prefer;
	    } else {
		nativeData = fromBuf.nativeData;
		nativePreferred = fromBuf.nativePreferred;
	    }

	}
    
public java.lang.ObjectgetData()

	if (nativeData != null)
	    return nativeData.getData();
	else
	    return data;
    
public com.sun.media.NBAgetNativeData()

	return nativeData;
    
public booleanisNativePreferred()

	return nativePreferred;
    
public voidsetData(java.lang.Object data)

	nativeData = null;
	this.data = data;
    
public voidsetNativeData(com.sun.media.NBA nativeData)



        
	this.nativeData = nativeData;
    
public voidsetNativePreferred(boolean prefer)

	nativePreferred = prefer;