gpt4 book ai didi

com.adobe.xmp.XMPMeta.deleteProperty()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 05:51:05 27 4
gpt4 key购买 nike

本文整理了Java中com.adobe.xmp.XMPMeta.deleteProperty()方法的一些代码示例,展示了XMPMeta.deleteProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMPMeta.deleteProperty()方法的具体详情如下:
包路径:com.adobe.xmp.XMPMeta
类名称:XMPMeta
方法名:deleteProperty

XMPMeta.deleteProperty介绍

[英]Deletes the given XMP subtree rooted at the given property. It is not an error if the property does not exist.
[中]删除以给定属性为根的给定XMP子树。如果属性不存在,则不是错误。

代码示例

代码示例来源:origin: apache/tika

/**
 * Removes the given property from the XMP data. If it is a complex property the whole subtree
 * is removed
 *
 * @see org.apache.tika.metadata.Metadata#remove(java.lang.String)
 */
@Override
public void remove(String name) {
  checkKey( name );
  String[] keyParts = splitKey( name );
  String ns = registry.getNamespaceURI( keyParts[0] );
  if (ns != null) {
    xmpData.deleteProperty( ns, keyParts[1] );
  }
}

代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-xmp

/**
 * Removes the given property from the XMP data. If it is a complex property the whole subtree
 * is removed
 *
 * @see org.apache.tika.metadata.Metadata#remove(java.lang.String)
 */
@Override
public void remove(String name) {
  checkKey( name );
  String[] keyParts = splitKey( name );
  String ns = registry.getNamespaceURI( keyParts[0] );
  if (ns != null) {
    xmpData.deleteProperty( ns, keyParts[1] );
  }
}

代码示例来源:origin: org.apache.tika/tika-xmp

/**
 * Removes the given property from the XMP data. If it is a complex property the whole subtree
 * is removed
 *
 * @see org.apache.tika.metadata.Metadata#remove(java.lang.String)
 */
@Override
public void remove(String name) {
  checkKey( name );
  String[] keyParts = splitKey( name );
  String ns = registry.getNamespaceURI( keyParts[0] );
  if (ns != null) {
    xmpData.deleteProperty( ns, keyParts[1] );
  }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com