public final class WavFormat extends RiffFormat
Represents a WAV (Waveform Audio File Format) audio file.
Constructor and Description |
---|
WavFormat(InputStream input)
Initializes a new instance of the
WavFormat class. |
WavFormat(String fileName)
Initializes a new instance of the
WavFormat class. |
Modifier and Type | Method and Description |
---|---|
WavAudioInfo |
getAudioInfo()
Gets the audio metadata.
|
int |
getType()
Gets the type of the loaded file.
|
cleanMetadata, getDublinCore, getXmpData, getXmpProperties, getXmpValues, hasXmp, removeXmpData, setXmpData
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public WavFormat(String fileName)
Initializes a new instance of the WavFormat
class.
fileName
- A string that contains the full name of the file from which to create a WavFormat
instance.public WavFormat(InputStream input)
Initializes a new instance of the WavFormat
class.
input
- A stream that contains the data for this WavFormat
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final WavAudioInfo getAudioInfo()
Gets the audio metadata.
Copyright © 2019. All rights reserved.