/* * Copyright 2002-2019 Drew Noakes and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * More information about this project is available at: * * https://drewnoakes.com/code/exif/ * https://github.com/drewnoakes/metadata-extractor */ package com.drew.metadata.xmp; import com.adobe.internal.xmp.XMPException; import com.adobe.internal.xmp.XMPIterator; import com.adobe.internal.xmp.XMPMeta; import com.adobe.internal.xmp.impl.XMPMetaImpl; import com.adobe.internal.xmp.options.IteratorOptions; import com.adobe.internal.xmp.properties.XMPPropertyInfo; import com.drew.lang.annotations.NotNull; import com.drew.lang.annotations.Nullable; import com.drew.metadata.Directory; import java.util.Collections; import java.util.HashMap; import java.util.Map; /** * Wraps an instance of Adobe's {@link XMPMeta} object, which holds XMP data. *
* XMP uses a namespace and path format for identifying values, which does not map to metadata-extractor's * integer based tag identifiers. Therefore, XMP data is extracted and exposed via {@link XmpDirectory#getXMPMeta()} * which returns an instance of Adobe's {@link XMPMeta} which exposes the full XMP data set. * * @author Torsten Skadell * @author Drew Noakes https://drewnoakes.com */ @SuppressWarnings("WeakerAccess") public class XmpDirectory extends Directory { public static final int TAG_XMP_VALUE_COUNT = 0xFFFF; @NotNull private static final HashMap
* This is required because XMP properties are represented as strings, whereas the rest of this library
* uses integers for keys.
*/
@NotNull
public Map