- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.adobe.xmp.XMPMeta.iterator()
方法的一些代码示例,展示了XMPMeta.iterator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMPMeta.iterator()
方法的具体详情如下:
包路径:com.adobe.xmp.XMPMeta
类名称:XMPMeta
方法名:iterator
[英]Constructs an iterator for the properties within this XMP object.
[中]为这个XMP对象中的属性构造一个迭代器。
代码示例来源:origin: drewnoakes/metadata-extractor
/**
* Gets a map of all XMP properties in this directory.
* <p>
* This is required because XMP properties are represented as strings, whereas the rest of this library
* uses integers for keys.
*/
@NotNull
public Map<String, String> getXmpProperties()
{
Map<String, String> propertyValueByPath = new HashMap<String, String>();
if (_xmpMeta != null)
{
try {
IteratorOptions options = new IteratorOptions().setJustLeafnodes(true);
for (Iterator i = _xmpMeta.iterator(options); i.hasNext(); ) {
XMPPropertyInfo prop = (XMPPropertyInfo)i.next();
String path = prop.getPath();
String value = prop.getValue();
if (path != null && value != null) {
propertyValueByPath.put(path, value);
}
}
} catch (XMPException ignored) {
}
}
return Collections.unmodifiableMap(propertyValueByPath);
}
代码示例来源:origin: drewnoakes/metadata-extractor
public void setXMPMeta(@NotNull XMPMeta xmpMeta)
{
_xmpMeta = xmpMeta;
try {
int valueCount = 0;
IteratorOptions options = new IteratorOptions().setJustLeafnodes(true);
for (Iterator i = _xmpMeta.iterator(options); i.hasNext(); ) {
XMPPropertyInfo prop = (XMPPropertyInfo)i.next();
if (prop.getPath() != null) {
valueCount++;
}
}
setInt(TAG_XMP_VALUE_COUNT, valueCount);
} catch (XMPException ignored) {
}
}
代码示例来源:origin: drewnoakes/metadata-extractor
/**
* Determine if there is an extended XMP section based on the standard XMP part.
* The xmpNote:HasExtendedXMP attribute contains the GUID of the Extended XMP chunks.
*/
@Nullable
private static String getExtendedXMPGUID(@NotNull Metadata metadata)
{
final Collection<XmpDirectory> xmpDirectories = metadata.getDirectoriesOfType(XmpDirectory.class);
for (XmpDirectory directory : xmpDirectories) {
final XMPMeta xmpMeta = directory.getXMPMeta();
try {
final XMPIterator itr = xmpMeta.iterator(SCHEMA_XMP_NOTES, null, null);
if (itr == null)
continue;
while (itr.hasNext()) {
final XMPPropertyInfo pi = (XMPPropertyInfo) itr.next();
if (ATTRIBUTE_EXTENDED_XMP.equals(pi.getPath())) {
return pi.getValue();
}
}
} catch (XMPException e) {
// Fail silently here: we had a reading issue, not a decoding issue.
}
}
return null;
}
代码示例来源:origin: drewnoakes/metadata-extractor
try {
IteratorOptions options = new IteratorOptions().setJustLeafnodes(true);
XMPIterator iterator = xmpMeta.iterator(options);
while (iterator.hasNext()) {
XMPPropertyInfo prop = (XMPPropertyInfo)iterator.next();
代码示例来源:origin: apache/tika
/**
* Returns the number of top-level namespaces
*/
@Override
public int size() {
int size = 0;
try {
// Get an iterator for the XMP packet, starting at the top level schema nodes
XMPIterator nsIter = xmpData.iterator( new IteratorOptions().setJustChildren( true )
.setOmitQualifiers( true ) );
// iterate all top level namespaces
while (nsIter.hasNext()) {
nsIter.next();
size++;
}
}
catch (XMPException e) {
// ignore
}
return size;
}
代码示例来源:origin: apache/tika
@Test
public void convert_wrongGenericMetadata_notConverted() throws XMPException, TikaException {
// unknown prefix
tikaMetadata.set( "unknown:key", "unknownPrefixValue" );
// not qualified key
tikaMetadata.set( "wrongKey", "wrongKeyValue" );
XMPMeta xmp = TikaToXMP.convert( tikaMetadata, null );
// XMP is empty
XMPIterator iter = xmp.iterator();
assertFalse( iter.hasNext() );
}
代码示例来源:origin: com.drewnoakes/metadata-extractor
public void setXMPMeta(@NotNull XMPMeta xmpMeta)
{
_xmpMeta = xmpMeta;
try {
int valueCount = 0;
for (Iterator i = _xmpMeta.iterator(); i.hasNext(); ) {
XMPPropertyInfo prop = (XMPPropertyInfo)i.next();
if (prop.getPath() != null) {
valueCount++;
}
}
setInt(TAG_XMP_VALUE_COUNT, valueCount);
} catch (XMPException ignored) {
}
}
代码示例来源:origin: com.drewnoakes/metadata-extractor
/**
* Gets a map of all XMP properties in this directory.
* <p>
* This is required because XMP properties are represented as strings, whereas the rest of this library
* uses integers for keys.
*/
@NotNull
public Map<String, String> getXmpProperties()
{
Map<String, String> propertyValueByPath = new HashMap<String, String>();
if (_xmpMeta != null)
{
try {
for (Iterator i = _xmpMeta.iterator(); i.hasNext(); ) {
XMPPropertyInfo prop = (XMPPropertyInfo)i.next();
String path = prop.getPath();
String value = prop.getValue();
if (path != null && value != null) {
propertyValueByPath.put(path, value);
}
}
} catch (XMPException ignored) {
}
}
return Collections.unmodifiableMap(propertyValueByPath);
}
代码示例来源:origin: stackoverflow.com
// Extract metadata from the image
Metadata metadata = ImageMetadataReader.readMetadata(image);
// Iterate through any XMP directories we may have received
for (XmpDirectory xmpDirectory : metadata.getDirectoriesOfType(XmpDirectory.class)) {
// Usually with metadata-extractor, you iterate a directory's tags. However XMP has
// a complex structure with many potentially unknown properties. This doesn't map
// well to metadata-extractor's directory-and-tag model.
//
// If you need to use XMP data, access the XMPMeta object directly.
XMPMeta xmpMeta = xmpDirectory.getXMPMeta();
// Iterate XMP properties
XMPIterator itr = xmpMeta.iterator();
while (itr.hasNext()) {
XMPPropertyInfo property = (XMPPropertyInfo) itr.next();
// Print details of the property
System.out.println(property.getPath() + ": " + property.getValue());
}
}
代码示例来源:origin: org.apache.tika/tika-xmp
/**
* Returns the number of top-level namespaces
*/
@Override
public int size() {
int size = 0;
try {
// Get an iterator for the XMP packet, starting at the top level schema nodes
XMPIterator nsIter = xmpData.iterator( new IteratorOptions().setJustChildren( true )
.setOmitQualifiers( true ) );
// iterate all top level namespaces
while (nsIter.hasNext()) {
nsIter.next();
size++;
}
}
catch (XMPException e) {
// ignore
}
return size;
}
代码示例来源:origin: org.apache.drill.exec/drill-java-exec
try {
IteratorOptions iteratorOptions = new IteratorOptions().setJustLeafnodes(true);
for (final Iterator i = xmpMeta.iterator(iteratorOptions); i.hasNext(); ) {
try {
XMPPropertyInfo prop = (XMPPropertyInfo) i.next();
代码示例来源:origin: stackoverflow.com
try {
Metadata metadata = ImageMetadataReader.readMetadata(imageFile);
XmpDirectory xmpDirectory = metadata.getDirectory(XmpDirectory.class);
XMPMeta xmpMeta = xmpDirectory.getXMPMeta();
XMPIterator itr = xmpMeta.iterator();
while (itr.hasNext()) {
XMPPropertyInfo pi = (XMPPropertyInfo) itr.next();
if (pi != null && pi.getPath() != null) {
if ((pi.getPath().endsWith("stArea:w")) || (pi.getPath().endsWith("mwg-rs:Name")) || (pi.getPath().endsWith("stArea:h")))
System.out.println(pi.getValue().toString());
}
}
} catch (final NullPointerException npe) {
// ignore
}
代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-xmp
/**
* Returns the number of top-level namespaces
*/
@Override
public int size() {
int size = 0;
try {
// Get an iterator for the XMP packet, starting at the top level schema nodes
XMPIterator nsIter = xmpData.iterator( new IteratorOptions().setJustChildren( true )
.setOmitQualifiers( true ) );
// iterate all top level namespaces
while (nsIter.hasNext()) {
nsIter.next();
size++;
}
}
catch (XMPException e) {
// ignore
}
return size;
}
代码示例来源:origin: stackoverflow.com
try {
Metadata metadata = ImageMetadataReader.readMetadata(imageFile);
XmpDirectory xmpDirectory = metadata.getDirectory(XmpDirectory.class);
XMPMeta xmpMeta = xmpDirectory.getXMPMeta();
XMPIterator itr = xmpMeta.iterator();
while (itr.hasNext()) {
XMPPropertyInfo pi = (XMPPropertyInfo) itr.next();
if (pi != null && pi.getPath() != null) {
if ((pi.getPath().endsWith("stArea:w")) || (pi.getPath().endsWith("mwg-rs:Name")) || (pi.getPath().endsWith("stArea:h")))
System.out.println(pi.getValue().toString());
}
}
} catch (final NullPointerException npe) {
// ignore
}
代码示例来源:origin: com.drewnoakes/metadata-extractor
/**
* Determine if there is an extended XMP section based on the standard XMP part.
* The xmpNote:HasExtendedXMP attribute contains the GUID of the Extended XMP chunks.
*/
@Nullable
private static String getExtendedXMPGUID(@NotNull Metadata metadata)
{
final Collection<XmpDirectory> xmpDirectories = metadata.getDirectoriesOfType(XmpDirectory.class);
for (XmpDirectory directory : xmpDirectories) {
final XMPMeta xmpMeta = directory.getXMPMeta();
try {
final XMPIterator itr = xmpMeta.iterator(SCHEMA_XMP_NOTES, null, null);
if (itr == null)
continue;
while (itr.hasNext()) {
final XMPPropertyInfo pi = (XMPPropertyInfo) itr.next();
if (ATTRIBUTE_EXTENDED_XMP.equals(pi.getPath())) {
return pi.getValue();
}
}
} catch (XMPException e) {
// Fail silently here: we had a reading issue, not a decoding issue.
}
}
return null;
}
代码示例来源:origin: com.drewnoakes/metadata-extractor
XMPMeta xmpMeta = xmpDirectory.getXMPMeta();
try {
XMPIterator iterator = xmpMeta.iterator();
while (iterator.hasNext()) {
XMPPropertyInfo prop = (XMPPropertyInfo)iterator.next();
来历及作用 进程程序文件是由深圳市迅雷网络技术有限公司为其发布迅雷看看播放器定义的一个多媒体在线播放程序。如果用户在Windows任务管理器中看到xmp.exe程序在运行,这说明您的电脑里安装了此
很多朋友在用迅雷看看观看电影视频的时候,都会出现下面这种情况,弹出一个虫子,然后抱歉的跟你说:xmp.exe崩溃了。那么xmp.exe崩溃如何解决?不用担心,今天小编将带领大家一起解决这一问题!
我发现了 XMP 标签,它对于逐字复制所有内容非常有用,直到结束 xmp 标签。 'aaa' 生成的CSS: pre, xmp, plaintext, listing { display: blo
有人记得 XMP 标签吗? 它的用途是什么?为什么不推荐使用它? 最佳答案 XMP和 PRE不同。 PRE内的内容标签格式如下: 内容以固定字体显示, 保留所有空格,并且 每个换行符开始一个新行。 如
本文整理了Java中com.adobe.xmp.XMPMeta类的一些代码示例,展示了XMPMeta类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从
本文整理了Java中com.adobe.xmp.XMPException类的一些代码示例,展示了XMPException类的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
我从 N 个图像创建一个 PDF。使用此命令行即可简单直接: convert front1.png back1.png front2.png back2.png result.pdf 不幸的是,一些信
我像这样拆分和合并一些 pdf 文件 pdftk A=content.pdf B=frontside.pdf cat B1 A5-2 output output.pdf 2>&1 结果很好,但不再有
从 tif 文件中提取元数据时,我遇到了上述问题。它的大小超过 450 MB。我正在使用 http://commons.apache.org/sanselan/ 提取最新版本(0.97)中的库。当我执
如何在不使用 XMP 元素的情况下在 HTML5 网站上显示包含标签的 HTML 标记? 本站采用HTML5制作,并展示HTML、C++等教程 所以我需要展示很多编程语言的源代码。 最佳答案 最常用的
我最近了解到xmp标签的使用,它已被弃用,很多人说使用pre,或者用 等 ...但这些解决方案对我来说并不好。 实际上,我想将内容放入网页中,并且在我使用 JavaScript 将其复制到其他容器中之
我需要在页面上显示一些代码而不对其进行解析 - 我可以使用 XMP 来执行此操作,但它似乎不在其所在容器的范围内?有没有办法让它适应 div 的宽度? http://codepen.io/r3dg3c
hi how are you? 应该渲染 hi how are you? 不 hi How are you? 句子的选择并不重要。我需要这个用于我正在制作的 HTML 标签表以帮助我进行编码,我需要
如果我要在 Python 中通过 XMP 标记一堆图像,最好的方法是什么?我使用过 Perl 的 Image::ExifTool 并且我非常习惯它的可靠性。我的意思是,这东西从未在数万张图片上变砖。
官方已弃用(但仍受主要浏览器支持),因此为了使新应用程序合法,唯一的解决方法是替换 xmp标签(不解析 HTML 的标签)是按我发现的那样使用:... . 此解决方案一切正常,但 Firefox(仅)
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata类的一些代码示例,展示了XMPMetadata类的具体用法。这些代码示例主要来源于Github/Stackove
在过去的几个小时里,我一直试图了解 XMP 元数据如何处理 PNG 文件,但无法完全理解它。 如果我用 Photoshop 创建一个 PNG 图像,保存它并打开文件信息对话框(文件 > 文件信息或 C
我很好奇是否可以为 XMP Dublin Core metadata 创建自定义命名空间? 例如,如果我想添加像 mytest 这样的标签 我可以编写 XMP 元数据标准标签,例如 descripti
我需要将 XMP 元数据添加到 PDF 文件中,而我进行的谷歌搜索并没有太大帮助。我正在寻找类似于 PDFTK 的工具,我可以通过命令行或脚本运行它以将 XMP 元数据添加到 PDF 中。 如果有办法
我正在尝试为发票创建 PDF/A 文件。因此,我尝试使用 gofpdf 为我的文件设置 XMP header 。图书馆。设置 header 似乎工作正常,但我的任何验证器(如 exiftool 或验证
我是一名优秀的程序员,十分优秀!