public class MultiXferItemImpl extends Object implements MultiXferItem, Serializable, Cloneable
Implementation of an element of a transfer array that is used when reading or writing one or more channels from an interleaved data stream.
Interleaved-essence: An essence format that combines two or more channels of audio or video data into a single essence stream.
| Constructor and Description |
|---|
MultiXferItemImpl(AUID mediaKind,
short subTrackNum,
int numSamples,
byte[] buffer)
Create a new multiple-transfer item.
|
| Modifier and Type | Method and Description |
|---|---|
MultiXferItemImpl |
clone() |
boolean |
equals(Object o) |
byte[] |
getBuffer()
Returns the data buffer of this item.
|
int |
getBuflen()
Deprecated.
|
AUID |
getMediaKind()
Returns the type of essence of this data item.
|
int |
getNumSamples()
Returns the number of samples of this data item to transfer.
|
short |
getSubTrackNum()
Returns the physical input-output track number of this data item, also known as "physical".
|
int |
hashCode() |
void |
setBuffer(byte[] buffer)
Sets the data buffer of this item.
|
void |
setBuflen(int buflen)
Deprecated.
|
void |
setMediaKind(AUID mediaKind)
Sets the essence type definition of this data item.
|
void |
setNumSamples(int numSamples)
Sets the number of samples of this data item to transfer.
|
void |
setSubTrackNum(short subTrackNum)
Sets the physical input-output track number of this data item, also known as "physical".
|
String |
toString()
Creates a pseudo-XML representation of the metadata part of this multi-transfer
item.
|
public MultiXferItemImpl(AUID mediaKind, @Int16 short subTrackNum, @UInt32 int numSamples, byte[] buffer) throws NullPointerException, IllegalArgumentException
Create a new multiple-transfer item.
mediaKind - The essence type definition, also known as "essenceDef".subTrackNum - The physical input-output channel number, also known as "physical".numSamples - The number of samples to transfer.buffer - The buffer of un-interleaved stream data.NullPointerException - One or both of the given media kind or data buffer is null.IllegalArgumentException - The given number of samples is negative.@DataBuffer public byte[] getBuffer()
MultiXferItemReturns the data buffer of this item.
getBuffer in interface MultiXferItempublic void setBuffer(@DataBuffer byte[] buffer) throws NullPointerException
MultiXferItemSets the data buffer of this item.
setBuffer in interface MultiXferItembuffer - Data buffer of this item.NullPointerException - The given data buffer is null.@Deprecated @UInt32 public int getBuflen()
MultiXferItemReturns the length of the data buffer of this item.
getBuflen in interface MultiXferItem@Deprecated public void setBuflen(@UInt32 int buflen)
MultiXferItemProvided to set the length of the data buffer of this item but this feature is unnecessary with Java's class-based representation of arrays. This method does nothing.
setBuflen in interface MultiXferItembuflen - Value is ignored.public AUID getMediaKind()
MultiXferItemReturns the type of essence of this data item.
getMediaKind in interface MultiXferItempublic void setMediaKind(AUID mediaKind) throws NullPointerException
MultiXferItemSets the essence type definition of this data item.
setMediaKind in interface MultiXferItemmediaKind - Type of essence represented by this item.NullPointerException - The given media kind is null.@UInt32 public int getNumSamples()
MultiXferItemReturns the number of samples of this data item to transfer.
getNumSamples in interface MultiXferItempublic void setNumSamples(@UInt32 int numSamples) throws IllegalArgumentException
MultiXferItemSets the number of samples of this data item to transfer.
setNumSamples in interface MultiXferItemnumSamples - Number of samples of this data item to transfer.IllegalArgumentException - The given number of samples is negative.@Int16 public short getSubTrackNum()
MultiXferItemReturns the physical input-output track number of this data item, also known as "physical".
getSubTrackNum in interface MultiXferItempublic void setSubTrackNum(@Int16 short subTrackNum)
MultiXferItemSets the physical input-output track number of this data item, also known as "physical".
setSubTrackNum in interface MultiXferItemsubTrackNum - Physical input-output track number of this data item.public String toString()
Creates a pseudo-XML representation of the metadata part of this multi-transfer item. No XML schema or DTD defines this element. For example:
<MultiTransferItem bufferLength="65536"> <MediaKind>urn:x-ul:060e2b34.0401.0101.01030202.01000000</MediaKind> <NumSamples>42</NumSamples> <SubTrackNum>7</SubTrackNum> </MultiTransferItem>
public MultiXferItemImpl clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.