# VorbisComment

Artifact: [androidx.media3:media3-extractor](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/extractor/metadata/vorbis/VorbisComment.java+class:androidx.media3.extractor.metadata.vorbis.VorbisComment)

*** ** * ** ***


```
@UnstableApi
public final class VorbisComment implements Metadata.Entry
```

<br />

*** ** * ** ***

A vorbis comment, extracted from a FLAC or Ogg file.

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/vorbis/VorbisComment#key()` The key in upper case, to ease case-insensitive comparisons. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/vorbis/VorbisComment#value()` The value. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/extractor/metadata/vorbis/VorbisComment#VorbisComment(java.lang.String,java.lang.String)(https://developer.android.com/reference/java/lang/String.html key, https://developer.android.com/reference/java/lang/String.html value)` Constructs an instance. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/vorbis/VorbisComment#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html obj)` |
| `int` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/vorbis/VorbisComment#hashCode()()` |
| `void` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/vorbis/VorbisComment#populateMediaMetadata(androidx.media3.common.MediaMetadata.Builder)(https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder builder)` Updates the `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/vorbis/VorbisComment#toString()()` |

| ### Inherited methods |
|---|
| From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/androidx/media3/common/Metadata.Entry) |---|---| | `@https://developer.android.com/reference/androidx/annotation/Nullable byte[]` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()()` Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata. | | `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Format` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataFormat()()` Returns the `https://developer.android.com/reference/androidx/media3/common/Format` that can be used to decode the wrapped metadata in `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()`, or null if this Entry doesn't contain wrapped metadata. | |

## Public fields

### key

```
public final String key
```

The key in upper case, to ease case-insensitive comparisons.

### value

```
public final String value
```

The value.

## Public constructors

### VorbisComment

```
public VorbisComment(String key, String value)
```

Constructs an instance.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html key` | The key. Must be an ASCII string containing only characters between 0x20 and 0x7D (inclusive), excluding 0x3D ('='). |
| `https://developer.android.com/reference/java/lang/String.html value` | The value. |

## Public methods

### equals

```
public boolean equals(@Nullable Object obj)
```

### hashCode

```
public int hashCode()
```

### populateMediaMetadata

```
public void populateMediaMetadata(MediaMetadata.Builder builder)
```

Updates the `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this `
Entry`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder builder` | The builder to be updated. |

### toString

```
public String toString()
```