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() |
getBlockAlignedSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBlockAlignedSize
protected 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
ChunkImpl
init
in interface Chunk
init
in class ChunkImpl
RiffWaveException
protected EClass eStaticClass()
eStaticClass
in class ChunkImpl
public CompressionCode getCompressionCode()
getCompressionCode
in interface ChunkFormat
CompressionCode
,
ChunkFormat.setCompressionCode(CompressionCode)
,
WavPackage.getChunkFormat_CompressionCode()
public void setCompressionCode(CompressionCode newCompressionCode)
setCompressionCode
in interface ChunkFormat
newCompressionCode
- the new value of the 'Compression Code' attribute.CompressionCode
,
ChunkFormat.getCompressionCode()
public java.lang.Integer getCompressionCodeValue()
getCompressionCodeValue
in interface ChunkFormat
ChunkFormat.setCompressionCodeValue(Integer)
,
WavPackage.getChunkFormat_CompressionCodeValue()
public void setCompressionCodeValue(java.lang.Integer newCompressionCodeValue)
setCompressionCodeValue
in interface ChunkFormat
newCompressionCodeValue
- the new value of the 'Compression Code Value' attribute.ChunkFormat.getCompressionCodeValue()
public java.lang.Integer getNumberOfChannels()
getNumberOfChannels
in interface ChunkFormat
ChunkFormat.setNumberOfChannels(Integer)
,
WavPackage.getChunkFormat_NumberOfChannels()
public void setNumberOfChannels(java.lang.Integer newNumberOfChannels)
setNumberOfChannels
in interface ChunkFormat
newNumberOfChannels
- the new value of the 'Number Of Channels' attribute.ChunkFormat.getNumberOfChannels()
public java.lang.Long getSampleRate()
getSampleRate
in interface ChunkFormat
ChunkFormat.setSampleRate(Long)
,
WavPackage.getChunkFormat_SampleRate()
public void setSampleRate(java.lang.Long newSampleRate)
setSampleRate
in interface ChunkFormat
newSampleRate
- the new value of the 'Sample Rate' attribute.ChunkFormat.getSampleRate()
public java.lang.Long getAverageBytesPerSecond()
getAverageBytesPerSecond
in interface ChunkFormat
ChunkFormat.setAverageBytesPerSecond(Long)
,
WavPackage.getChunkFormat_AverageBytesPerSecond()
public void setAverageBytesPerSecond(java.lang.Long newAverageBytesPerSecond)
setAverageBytesPerSecond
in interface ChunkFormat
newAverageBytesPerSecond
- the new value of the 'Average Bytes Per Second' attribute.ChunkFormat.getAverageBytesPerSecond()
public java.lang.Integer getBlockAlign()
getBlockAlign
in interface ChunkFormat
ChunkFormat.setBlockAlign(Integer)
,
WavPackage.getChunkFormat_BlockAlign()
public void setBlockAlign(java.lang.Integer newBlockAlign)
setBlockAlign
in interface ChunkFormat
newBlockAlign
- the new value of the 'Block Align' attribute.ChunkFormat.getBlockAlign()
public java.lang.Integer getSignificantBitsPerSample()
getSignificantBitsPerSample
in interface ChunkFormat
ChunkFormat.setSignificantBitsPerSample(Integer)
,
WavPackage.getChunkFormat_SignificantBitsPerSample()
public void setSignificantBitsPerSample(java.lang.Integer newSignificantBitsPerSample)
setSignificantBitsPerSample
in interface ChunkFormat
newSignificantBitsPerSample
- the new value of the 'Significant Bits Per Sample' attribute.ChunkFormat.getSignificantBitsPerSample()
public java.lang.Integer getNumberOfExtraFormatBytes()
getNumberOfExtraFormatBytes
in interface ChunkFormat
WavPackage.getChunkFormat_NumberOfExtraFormatBytes()
public byte[] getExtraFormatBytes()
getExtraFormatBytes
in interface ChunkFormat
ChunkFormat.setExtraFormatBytes(byte[])
,
WavPackage.getChunkFormat_ExtraFormatBytes()
public void setExtraFormatBytes(byte[] newExtraFormatBytes)
setExtraFormatBytes
in interface ChunkFormat
newExtraFormatBytes
- the new value of the 'Extra Format Bytes' attribute.ChunkFormat.getExtraFormatBytes()
public ChunkTypeID getChunkTypeID()
ChunkImpl
getChunkTypeID
in interface Chunk
getChunkTypeID
in class ChunkImpl
ChunkTypeID
,
WavPackage.getChunk_ChunkTypeID()
public int getChunkTypeIDValue()
ChunkImpl
getChunkTypeIDValue
in interface Chunk
getChunkTypeIDValue
in class ChunkImpl
WavPackage.getChunk_ChunkTypeIDValue()
public long getSize()
ChunkImpl
getSize
in interface Chunk
getSize
in class ChunkImpl
WavPackage.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()
ChunkImpl
toByteArray
in interface Chunk
toByteArray
in class ChunkImpl