public class ChunkFormatImpl extends ChunkImpl implements ChunkFormat
The following features are implemented:
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Long |
AVERAGE_BYTES_PER_SECOND_EDEFAULT
The default value of the '
Average Bytes Per Second' attribute. |
protected java.lang.Long |
averageBytesPerSecond
The cached value of the '
Average Bytes Per Second' attribute. |
protected static java.lang.Integer |
BLOCK_ALIGN_EDEFAULT
The default value of the '
Block Align' attribute. |
protected java.lang.Integer |
blockAlign
The cached value of the '
Block Align' attribute. |
protected static CompressionCode |
COMPRESSION_CODE_EDEFAULT
The default value of the '
Compression Code' attribute. |
protected static java.lang.Integer |
COMPRESSION_CODE_VALUE_EDEFAULT
The default value of the '
Compression Code Value' attribute. |
protected CompressionCode |
compressionCode
The cached value of the '
Compression Code' attribute. |
protected java.lang.Integer |
compressionCodeValue
The cached value of the '
Compression Code Value' attribute. |
protected static byte[] |
EXTRA_FORMAT_BYTES_EDEFAULT
The default value of the '
Extra Format Bytes' attribute. |
protected byte[] |
extraFormatBytes
The cached value of the '
Extra Format Bytes' attribute. |
protected static java.lang.Integer |
NUMBER_OF_CHANNELS_EDEFAULT
The default value of the '
Number Of Channels' attribute. |
protected static java.lang.Integer |
NUMBER_OF_EXTRA_FORMAT_BYTES_EDEFAULT
The default value of the '
Number Of Extra Format Bytes' attribute. |
protected java.lang.Integer |
numberOfChannels
The cached value of the '
Number Of Channels' attribute. |
protected static java.lang.Long |
SAMPLE_RATE_EDEFAULT
The default value of the '
Sample Rate' attribute. |
protected java.lang.Long |
sampleRate
The cached value of the '
Sample Rate' attribute. |
protected static java.lang.Integer |
SIGNIFICANT_BITS_PER_SAMPLE_EDEFAULT
The default value of the '
Significant Bits Per Sample' attribute. |
protected java.lang.Integer |
significantBitsPerSample
The cached value of the '
Significant Bits Per Sample' attribute. |
BLOCK_ALIGNED_SIZE_EDEFAULT, CHUNK_TYPE_ID_EDEFAULT, CHUNK_TYPE_ID_VALUE_EDEFAULT, SIZE_EDEFAULT| Modifier | Constructor and Description |
|---|---|
protected |
ChunkFormatImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
java.lang.Long |
getAverageBytesPerSecond() |
java.lang.Integer |
getBlockAlign() |
ChunkTypeID |
getChunkTypeID() |
int |
getChunkTypeIDValue() |
CompressionCode |
getCompressionCode() |
java.lang.Integer |
getCompressionCodeValue() |
byte[] |
getExtraFormatBytes() |
java.lang.Integer |
getNumberOfChannels() |
java.lang.Integer |
getNumberOfExtraFormatBytes() |
java.lang.Long |
getSampleRate() |
java.lang.Integer |
getSignificantBitsPerSample() |
long |
getSize() |
void |
init(RIFFWave riffWave,
ExtendedByteBuffer buf) |
void |
setAverageBytesPerSecond(java.lang.Long newAverageBytesPerSecond) |
void |
setBlockAlign(java.lang.Integer newBlockAlign) |
void |
setCompressionCode(CompressionCode newCompressionCode) |
void |
setCompressionCodeValue(java.lang.Integer newCompressionCodeValue) |
void |
setExtraFormatBytes(byte[] newExtraFormatBytes) |
void |
setNumberOfChannels(java.lang.Integer newNumberOfChannels) |
void |
setSampleRate(java.lang.Long newSampleRate) |
void |
setSignificantBitsPerSample(java.lang.Integer newSignificantBitsPerSample) |
byte[] |
toByteArray() |
java.lang.String |
toString() |
getBlockAlignedSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBlockAlignedSizeprotected static final CompressionCode COMPRESSION_CODE_EDEFAULT
Compression Code' attribute.
getCompressionCode()protected CompressionCode compressionCode
Compression Code' attribute.
getCompressionCode()protected static final java.lang.Integer COMPRESSION_CODE_VALUE_EDEFAULT
Compression Code Value' attribute.
getCompressionCodeValue()protected java.lang.Integer compressionCodeValue
Compression Code Value' attribute.
getCompressionCodeValue()protected static final java.lang.Integer NUMBER_OF_CHANNELS_EDEFAULT
Number Of Channels' attribute.
getNumberOfChannels()protected java.lang.Integer numberOfChannels
Number Of Channels' attribute.
getNumberOfChannels()protected static final java.lang.Long SAMPLE_RATE_EDEFAULT
Sample Rate' attribute.
getSampleRate()protected java.lang.Long sampleRate
Sample Rate' attribute.
getSampleRate()protected static final java.lang.Long AVERAGE_BYTES_PER_SECOND_EDEFAULT
Average Bytes Per Second' attribute.
getAverageBytesPerSecond()protected java.lang.Long averageBytesPerSecond
Average Bytes Per Second' attribute.
getAverageBytesPerSecond()protected static final java.lang.Integer BLOCK_ALIGN_EDEFAULT
Block Align' attribute.
getBlockAlign()protected java.lang.Integer blockAlign
Block Align' attribute.
getBlockAlign()protected static final java.lang.Integer SIGNIFICANT_BITS_PER_SAMPLE_EDEFAULT
Significant Bits Per Sample' attribute.
getSignificantBitsPerSample()protected java.lang.Integer significantBitsPerSample
Significant Bits Per Sample' attribute.
getSignificantBitsPerSample()protected static final java.lang.Integer NUMBER_OF_EXTRA_FORMAT_BYTES_EDEFAULT
Number Of Extra Format Bytes' attribute.
getNumberOfExtraFormatBytes()protected static final byte[] EXTRA_FORMAT_BYTES_EDEFAULT
Extra Format Bytes' attribute.
getExtraFormatBytes()protected byte[] extraFormatBytes
Extra Format Bytes' attribute.
getExtraFormatBytes()public void init(RIFFWave riffWave, ExtendedByteBuffer buf) throws RiffWaveException
ChunkImplinit in interface Chunkinit in class ChunkImplRiffWaveExceptionprotected EClass eStaticClass()
eStaticClass in class ChunkImplpublic CompressionCode getCompressionCode()
getCompressionCode in interface ChunkFormatCompressionCode,
ChunkFormat.setCompressionCode(CompressionCode),
WavPackage.getChunkFormat_CompressionCode()public void setCompressionCode(CompressionCode newCompressionCode)
setCompressionCode in interface ChunkFormatnewCompressionCode - the new value of the 'Compression Code' attribute.CompressionCode,
ChunkFormat.getCompressionCode()public java.lang.Integer getCompressionCodeValue()
getCompressionCodeValue in interface ChunkFormatChunkFormat.setCompressionCodeValue(Integer),
WavPackage.getChunkFormat_CompressionCodeValue()public void setCompressionCodeValue(java.lang.Integer newCompressionCodeValue)
setCompressionCodeValue in interface ChunkFormatnewCompressionCodeValue - the new value of the 'Compression Code Value' attribute.ChunkFormat.getCompressionCodeValue()public java.lang.Integer getNumberOfChannels()
getNumberOfChannels in interface ChunkFormatChunkFormat.setNumberOfChannels(Integer),
WavPackage.getChunkFormat_NumberOfChannels()public void setNumberOfChannels(java.lang.Integer newNumberOfChannels)
setNumberOfChannels in interface ChunkFormatnewNumberOfChannels - the new value of the 'Number Of Channels' attribute.ChunkFormat.getNumberOfChannels()public java.lang.Long getSampleRate()
getSampleRate in interface ChunkFormatChunkFormat.setSampleRate(Long),
WavPackage.getChunkFormat_SampleRate()public void setSampleRate(java.lang.Long newSampleRate)
setSampleRate in interface ChunkFormatnewSampleRate - the new value of the 'Sample Rate' attribute.ChunkFormat.getSampleRate()public java.lang.Long getAverageBytesPerSecond()
getAverageBytesPerSecond in interface ChunkFormatChunkFormat.setAverageBytesPerSecond(Long),
WavPackage.getChunkFormat_AverageBytesPerSecond()public void setAverageBytesPerSecond(java.lang.Long newAverageBytesPerSecond)
setAverageBytesPerSecond in interface ChunkFormatnewAverageBytesPerSecond - the new value of the 'Average Bytes Per Second' attribute.ChunkFormat.getAverageBytesPerSecond()public java.lang.Integer getBlockAlign()
getBlockAlign in interface ChunkFormatChunkFormat.setBlockAlign(Integer),
WavPackage.getChunkFormat_BlockAlign()public void setBlockAlign(java.lang.Integer newBlockAlign)
setBlockAlign in interface ChunkFormatnewBlockAlign - the new value of the 'Block Align' attribute.ChunkFormat.getBlockAlign()public java.lang.Integer getSignificantBitsPerSample()
getSignificantBitsPerSample in interface ChunkFormatChunkFormat.setSignificantBitsPerSample(Integer),
WavPackage.getChunkFormat_SignificantBitsPerSample()public void setSignificantBitsPerSample(java.lang.Integer newSignificantBitsPerSample)
setSignificantBitsPerSample in interface ChunkFormatnewSignificantBitsPerSample - the new value of the 'Significant Bits Per Sample' attribute.ChunkFormat.getSignificantBitsPerSample()public java.lang.Integer getNumberOfExtraFormatBytes()
getNumberOfExtraFormatBytes in interface ChunkFormatWavPackage.getChunkFormat_NumberOfExtraFormatBytes()public byte[] getExtraFormatBytes()
getExtraFormatBytes in interface ChunkFormatChunkFormat.setExtraFormatBytes(byte[]),
WavPackage.getChunkFormat_ExtraFormatBytes()public void setExtraFormatBytes(byte[] newExtraFormatBytes)
setExtraFormatBytes in interface ChunkFormatnewExtraFormatBytes - the new value of the 'Extra Format Bytes' attribute.ChunkFormat.getExtraFormatBytes()public ChunkTypeID getChunkTypeID()
ChunkImplgetChunkTypeID in interface ChunkgetChunkTypeID in class ChunkImplChunkTypeID,
WavPackage.getChunk_ChunkTypeID()public int getChunkTypeIDValue()
ChunkImplgetChunkTypeIDValue in interface ChunkgetChunkTypeIDValue in class ChunkImplWavPackage.getChunk_ChunkTypeIDValue()public long getSize()
ChunkImplgetSize in interface ChunkgetSize in class ChunkImplWavPackage.getChunk_Size()public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
public void eSet(int featureID,
java.lang.Object newValue)
public void eUnset(int featureID)
public java.lang.String toString()
public byte[] toByteArray()
ChunkImpltoByteArray in interface ChunktoByteArray in class ChunkImpl