MP3RootPackage

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage

All Implemented Interfaces: com.groupdocs.metadata.core.IXmp

public class MP3RootPackage extends RootMetadataPackage implements IXmp

Represents the root package allowing working with metadata in an MP3 audio.

Learn more

Methods

Method Description
getMpegAudioPackage() Gets the MPEG audio metadata package.
getID3V1() Gets the ID3v1 metadata tag.
setID3V1(ID3V1Tag value) Sets the ID3v1 metadata tag.
getID3V2() Gets the ID3v2 metadata tag.
setID3V2(ID3V2Tag value) Sets the ID3v2 metadata tag.
getLyrics3V2() Gets the Lyrics3v2 metadata tag.
setLyrics3V2(LyricsTag value) Sets the Lyrics3v2 metadata tag.
getApeV2() Gets the APE v2 metadata.
getXmpPackage() Gets the XMP metadata package.
setXmpPackage(XmpPacketWrapper value) Sets the XMP metadata package.
removeApeV2() Removes the APEv2 audio tag.
sanitize() Removes writable metadata properties from the package.
copyTo(MetadataPackage metadata)

getMpegAudioPackage()

public final MpegAudioPackage getMpegAudioPackage()

Gets the MPEG audio metadata package.

Returns: MpegAudioPackage - The MPEG audio metadata package.

getID3V1()

public final ID3V1Tag getID3V1()

Gets the ID3v1 metadata tag. Please find more information at http://id3.org/ID3v1 .

Returns: ID3V1Tag - The ID3v1 metadata tag attached to the audio file.


The ID3(v1) tag is a small chunk of extra data at the end of an MP3 file.

setID3V1(ID3V1Tag value)

public final void setID3V1(ID3V1Tag value)

Sets the ID3v1 metadata tag. Please find more information at http://id3.org/ID3v1 .

Parameters:

Parameter Type Description
value ID3V1Tag The ID3v1 metadata tag attached to the audio file.

The ID3(v1) tag is a small chunk of extra data at the end of an MP3 file. |

getID3V2()

public final ID3V2Tag getID3V2()

Gets the ID3v2 metadata tag.

Returns: ID3V2Tag - The ID3v2 metadata tag attached to the audio file.

setID3V2(ID3V2Tag value)

public final void setID3V2(ID3V2Tag value)

Sets the ID3v2 metadata tag.

Parameters:

Parameter Type Description
value ID3V2Tag The ID3v2 metadata tag attached to the audio file.

getLyrics3V2()

public final LyricsTag getLyrics3V2()

Gets the Lyrics3v2 metadata tag.

Returns: LyricsTag - The Lyrics3v2 metadata tag.

setLyrics3V2(LyricsTag value)

public final void setLyrics3V2(LyricsTag value)

Sets the Lyrics3v2 metadata tag.

Parameters:

Parameter Type Description
value LyricsTag The Lyrics3v2 metadata tag.

getApeV2()

public final ApePackage getApeV2()

Gets the APE v2 metadata.

Returns: ApePackage - The APE v2 metadata.

getXmpPackage()

public final XmpPacketWrapper getXmpPackage()

Gets the XMP metadata package.

Returns: XmpPacketWrapper - The XMP metadata package.

Learn more

setXmpPackage(XmpPacketWrapper value)

public final void setXmpPackage(XmpPacketWrapper value)

Sets the XMP metadata package.

Parameters:

Parameter Type Description
value XmpPacketWrapper The XMP metadata package.

Learn more

Working with XMP metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+XMP+metadata |

removeApeV2()

public final void removeApeV2()

Removes the APEv2 audio tag.


This feature is not available in trial mode.

sanitize()

public int sanitize()

Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.

Returns: int - The number of affected properties.

copyTo(MetadataPackage metadata)

public void copyTo(MetadataPackage metadata)

Parameters:

Parameter Type Description
metadata MetadataPackage