public class WavRootPackage extends RootMetadataPackage implements IXmp
Represents the root package allowing working with metadata in a WAV audio.
This code sample shows how to extract technical audio information from a WAV file.
try (Metadata metadata = new Metadata(Constants.InputWav)) { WavRootPackage root = metadata.getRootPackageGeneric(); if (root.getWavPackage() != null) { System.out.println(root.getWavPackage().getAudioFormat()); System.out.println(root.getWavPackage().getBitsPerSample()); System.out.println(root.getWavPackage().getBlockAlign()); System.out.println(root.getWavPackage().getByteRate()); System.out.println(root.getWavPackage().getNumberOfChannels()); System.out.println(root.getWavPackage().getSampleRate()); } }
| Modifier and Type | Method and Description |
|---|---|
RiffInfoPackage |
getRiffInfoPackage()
Gets the package containing RIFF Info tags.
|
WavPackage |
getWavPackage()
Gets the WAV native metadata package.
|
XmpPacketWrapper |
getXmpPackage()
Gets the XMP metadata package.
|
void |
setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
|
copyTo, getFileType, isLicensed, sanitizeaddProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final RiffInfoPackage getRiffInfoPackage()
Gets the package containing RIFF Info tags.
public final WavPackage getWavPackage()
Gets the WAV native metadata package.
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
getXmpPackage in interface IXmpLearn more
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
setXmpPackage in interface IXmpvalue - The XMP metadata package.
Learn more
Copyright © 2026. All rights reserved.