public final class Mp3Format extends FormatBase
Represents an Mp3 audio file (MPEG-1 and/or MPEG-2 Audio Layer III).
Constructor and Description |
---|
Mp3Format(InputStream input)
Initializes a new instance of the
Mp3Format class. |
Mp3Format(String fileName)
Initializes a new instance of the
Mp3Format class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes ID3v1/ID3v2/Lyrics3/APE tags.
|
Apev2Metadata |
getAPEv2()
Gets the APE v2 metadata.
|
MpegAudio |
getAudioDetails()
Gets the MPEG audio metadata associated with the audio file.
|
Id3v1Tag |
getId3v1Properties()
Gets the ID3v1 metadata associated with the audio file.
|
Id3v1Tag |
getId3v1Tag()
Gets the ID3v1 tag.
|
Id3v2Tag |
getId3v2Properties()
Gets the ID3v2 metadata associated with the audio file.
|
Id3v2Tag |
getId3v2Tag()
Gets the ID3v2 tag.
|
Lyrics3Tag |
getLyrics3Tag()
Gets the Lyrics3 v2.00 tag.
|
Lyrics3Tag |
getLyrics3v2Properties()
Gets the Lyrics3 metadata version 2.0.
|
int |
getType()
Gets the type of the loaded file.
|
Apev2Metadata |
readAPEv2Tag()
Reads the APEv2 audio tag.
|
void |
removeAPEv2()
Removes the APEv2 audio tag.
|
void |
removeId3v1()
Removes the ID3v1 tag.
|
void |
removeId3v2()
Removes the ID3v2 tag.
|
void |
removeLyrics3v2()
Removes the Lyrics3 v2 tag.
|
void |
updateId3v1(Id3v1Tag tag)
Updates the ID3v1 tag.
|
void |
updateId3v2(Id3v2Tag tag)
Rewrites the ID3v2 tag.
|
void |
updateLyrics3v2(Lyrics3Tag tag)
Updates the Lyrics3 v2 tag.
|
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public Mp3Format(String fileName)
Initializes a new instance of the Mp3Format
class.
fileName
- A string that contains the full name of the file from which to create an Mp3Format
instance.public Mp3Format(InputStream input)
Initializes a new instance of the Mp3Format
class.
input
- A stream that contains the data for this Mp3Format
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final MpegAudio getAudioDetails()
Gets the MPEG audio metadata associated with the audio file.
public final Id3v1Tag getId3v1Properties()
Gets the ID3v1 metadata associated with the audio file.
Please find more information at <a href="http://id3.org/ID3v1">http://id3.org/ID3v1</a>
.
public final Id3v2Tag getId3v2Properties()
Gets the ID3v2 metadata associated with the audio file.
public final Lyrics3Tag getLyrics3v2Properties()
Gets the Lyrics3 metadata version 2.0.
public final Apev2Metadata getAPEv2()
Gets the APE v2 metadata.
public void cleanMetadata()
Removes ID3v1/ID3v2/Lyrics3/APE tags.
cleanMetadata
in class FormatBase
public final Id3v1Tag getId3v1Tag()
Gets the ID3v1 tag.
public final void updateId3v1(Id3v1Tag tag)
Updates the ID3v1 tag.
tag
- ID3v1 tag.
public final void removeId3v1()
Removes the ID3v1 tag.
public final Id3v2Tag getId3v2Tag()
Gets the ID3v2 tag.
public final void updateId3v2(Id3v2Tag tag)
Rewrites the ID3v2 tag.
tag
- An ID3 v2.* tag.
public final void removeId3v2()
Removes the ID3v2 tag.
public final Lyrics3Tag getLyrics3Tag()
Gets the Lyrics3 v2.00 tag.
Lyrics3Tag
.public final void updateLyrics3v2(Lyrics3Tag tag)
Updates the Lyrics3 v2 tag.
tag
- Lyrics3 v2 tag.
public final void removeLyrics3v2()
Removes the Lyrics3 v2 tag.
public final Apev2Metadata readAPEv2Tag()
Reads the APEv2 audio tag.
Apev2Metadata
instance if found, otherwise null.public final void removeAPEv2()
Removes the APEv2 audio tag.
Copyright © 2019. All rights reserved.