- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata
类的一些代码示例,展示了XMPMetadata
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMPMetadata
类的具体详情如下:
包路径:org.apache.jempbox.xmp.XMPMetadata
类名称:XMPMetadata
[英]This class represents the top level XMP data structure and gives access to the various schemas that are available as part of the XMP specification.
[中]该类表示顶级XMP数据结构,并提供对各种模式的访问,这些模式是XMP规范的一部分。
代码示例来源:origin: org.apache.pdfbox/jempbox
/**
* Get the PDF Schema.
*
* @return The first PDF schema in the list.
*
* @throws IOException
* If there is an error accessing the schema.
*/
public XMPSchemaPDF getPDFSchema() throws IOException
{
return (XMPSchemaPDF) getSchemaByClass(XMPSchemaPDF.class);
}
代码示例来源:origin: apache/tika
public void parse(InputStream file) throws IOException, TikaException {
ByteArrayOutputStream xmpraw = new ByteArrayOutputStream();
if (!scanner.parse(file, xmpraw)) {
return;
}
XMPMetadata xmp = null;
try (InputStream decoded =
new ByteArrayInputStream(xmpraw.toByteArray())
) {
Document dom = XMLReaderUtils.buildDOM(decoded, EMPTY_PARSE_CONTEXT);
if (dom != null) {
xmp = new XMPMetadata(dom);
}
} catch (IOException|SAXException e) {
//
}
extractDublinCore(xmp, metadata);
extractXMPMM(xmp, metadata);
}
代码示例来源:origin: apache/tika
dc = xmpMetadata.getDublinCoreSchema();
} catch (IOException e) {
代码示例来源:origin: apache/tika
xmp = new XMPMetadata(dom);
dcSchema = xmp.getDublinCoreSchema();
} catch (IOException e) {}
xmp.addXMLNSMapping(XMPSchemaPDFAId.NAMESPACE, XMPSchemaPDFAId.class);
XMPSchemaPDFAId pdfaxmp = (XMPSchemaPDFAId) xmp.getSchemaByClass(XMPSchemaPDFAId.class);
if (pdfaxmp != null) {
if (pdfaxmp.getPart() != null) {
代码示例来源:origin: ukwa/webarchive-discovery
XMPMetadata xmp = XMPMetadata.load(document.getDocumentCatalog()
.getMetadata().exportXMPMetadata());
XMPSchemaPDF pdfxmp = xmp.getPDFSchema();
xmp.addXMLNSMapping(XMPSchemaPDFA.NAMESPACE, XMPSchemaPDFA.class);
XMPSchemaPDFA pdfaxmp = (XMPSchemaPDFA) xmp.getSchemaByClass(XMPSchemaPDFA.class);
if( pdfaxmp != null ) {
metadata.set("pdfaid:part", pdfaxmp.getPart());
代码示例来源:origin: uk.bl.wa.discovery/digipres-tika
extractor.parse( new ByteArrayInputStream( xmpmd ) );
XMPMetadata xmp = XMPMetadata.load( new ByteArrayInputStream( xmpmd ) );
xmp.addXMLNSMapping(XMPSchemaPDFA.NAMESPACE, XMPSchemaPDFA.class);
XMPSchemaPDFA pdfaxmp = (XMPSchemaPDFA) xmp.getSchemaByClass(XMPSchemaPDFA.class);
if( pdfaxmp != null ) {
metadata.set("pdfaid:part", pdfaxmp.getPart());
代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-parsers
xmp = new XMPMetadata(dom);
xmp.addXMLNSMapping(XMPSchemaPDFAId.NAMESPACE, XMPSchemaPDFAId.class);
XMPSchemaPDFAId pdfaxmp = (XMPSchemaPDFAId) xmp.getSchemaByClass(XMPSchemaPDFAId.class);
if (pdfaxmp != null) {
if (pdfaxmp.getPart() != null) {
代码示例来源:origin: org.apache.pdfbox/jempbox
XMPMetadata metadata = new XMPMetadata();
XMPSchemaPDF pdf = metadata.addPDFSchema();
pdf.setAbout("uuid:b8659d3a-369e-11d9-b951-000393c97fd8");
pdf.setKeywords("ben,bob,pdf");
pdf.setProducer("Acrobat Distiller 6.0.1 for Macintosh");
XMPSchemaDublinCore dc = metadata.addDublinCoreSchema();
dc.addContributor("Ben Litchfield");
dc.addContributor("Solar Eclipse");
dc.addContributor("Some Other Guy");
XMPSchemaBasic basic = metadata.addBasicSchema();
Thumbnail t = new Thumbnail(metadata);
t.setFormat(Thumbnail.FORMAT_JPEG);
basic.setBaseURL("http://www.pdfbox.org/");
List<XMPSchema> schemas = metadata.getSchemas();
System.out.println("schemas=" + schemas);
metadata.save("test.xmp");
代码示例来源:origin: org.apache.pdfbox/jempbox
/**
* Merge this metadata with the given metadata object.
*
* @param metadata The metadata to merge with this document.
*
* @throws IOException If there is an error merging the data.
*/
public void merge(XMPMetadata metadata) throws IOException
{
List<XMPSchema> schemas2 = metadata.getSchemas();
for (Iterator<XMPSchema> iterator = schemas2.iterator(); iterator.hasNext();)
{
XMPSchema schema2 = iterator.next();
XMPSchema schema1 = getSchemaByClass(schema2.getClass());
if (schema1 == null)
{
Element rdf = getRDFElement();
rdf.appendChild(xmpDocument.importNode(schema2.getElement(),
true));
}
else
{
schema1.merge(schema2);
}
}
}
}
代码示例来源:origin: org.exoplatform.core/exo.core.component.document
XMPSchemaDublinCore dc = metadata.getDublinCoreSchema();
if (dc != null)
XMPSchemaPDF pdf = metadata.getPDFSchema();
if (pdf != null)
XMPSchemaBasic basic = metadata.getBasicSchema();
if (basic != null)
代码示例来源:origin: apache/tika
mmSchema = xmp.getMediaManagementSchema();
} catch (IOException e) {
代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-external
xmp = new XMPMetadata(dom);
dcSchema = xmp.getDublinCoreSchema();
} catch (IOException e) {}
xmp.addXMLNSMapping(XMPSchemaPDFAId.NAMESPACE, XMPSchemaPDFAId.class);
XMPSchemaPDFAId pdfaxmp = (XMPSchemaPDFAId) xmp.getSchemaByClass(XMPSchemaPDFAId.class);
if (pdfaxmp != null) {
if (pdfaxmp.getPart() != null) {
代码示例来源:origin: uk.bl.wa.discovery/digipres-tika
XMPMetadata xmp = XMPMetadata.load(document.getDocumentCatalog()
.getMetadata().exportXMPMetadata());
XMPSchemaPDF pdfxmp = xmp.getPDFSchema();
xmp.addXMLNSMapping(XMPSchemaPDFA.NAMESPACE, XMPSchemaPDFA.class);
XMPSchemaPDFA pdfaxmp = (XMPSchemaPDFA) xmp.getSchemaByClass(XMPSchemaPDFA.class);
if( pdfaxmp != null ) {
metadata.set("pdfaid:part", pdfaxmp.getPart());
代码示例来源:origin: ukwa/webarchive-discovery
extractor.parse( new ByteArrayInputStream( xmpmd ) );
XMPMetadata xmp = XMPMetadata.load( new ByteArrayInputStream( xmpmd ) );
xmp.addXMLNSMapping(XMPSchemaPDFA.NAMESPACE, XMPSchemaPDFA.class);
XMPSchemaPDFA pdfaxmp = (XMPSchemaPDFA) xmp.getSchemaByClass(XMPSchemaPDFA.class);
if( pdfaxmp != null ) {
metadata.set("pdfaid:part", pdfaxmp.getPart());
代码示例来源:origin: org.apache.tika/tika-parsers
mmSchema = xmp.getMediaManagementSchema();
} catch (IOException e) {
代码示例来源:origin: org.apache.tika/tika-parsers
xmp = new XMPMetadata(dom);
dcSchema = xmp.getDublinCoreSchema();
} catch (IOException e) {}
xmp.addXMLNSMapping(XMPSchemaPDFAId.NAMESPACE, XMPSchemaPDFAId.class);
XMPSchemaPDFAId pdfaxmp = (XMPSchemaPDFAId) xmp.getSchemaByClass(XMPSchemaPDFAId.class);
if (pdfaxmp != null) {
if (pdfaxmp.getPart() != null) {
代码示例来源:origin: org.apache.pdfbox/jempbox
/**
* Get the Paged Text Schema.
*
* @return The first Paged Text schema in the list.
*
* @throws IOException
* If there is an error accessing the schema.
*/
public XMPSchemaPagedText getPagedTextSchema() throws IOException
{
return (XMPSchemaPagedText) getSchemaByClass(XMPSchemaPagedText.class);
}
代码示例来源:origin: apache/tika
public void parseRawXMP(byte[] xmpData)
throws IOException, SAXException, TikaException {
XMPMetadata xmp = null;
try (InputStream decoded =
new ByteArrayInputStream(xmpData)
) {
Document dom = XMLReaderUtils.buildDOM(decoded, EMPTY_PARSE_CONTEXT);
if (dom != null) {
xmp = new XMPMetadata(dom);
}
} catch (IOException|SAXException e) {
//
}
if (xmp != null) {
JempboxExtractor.extractDublinCore(xmp, metadata);
JempboxExtractor.extractXMPMM(xmp, metadata);
}
}
代码示例来源:origin: org.apache.tika/tika-parsers
dc = xmpMetadata.getDublinCoreSchema();
} catch (IOException e) {
代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-parsers
mmSchema = xmp.getMediaManagementSchema();
} catch (IOException e) {
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata类的一些代码示例,展示了XMPMetadata类的具体用法。这些代码示例主要来源于Github/Stackove
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata.getMediaManagementSchema()方法的一些代码示例,展示了XMPMetadata.getM
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata.()方法的一些代码示例,展示了XMPMetadata.()的具体用法。这些代码示例主要来源于Github/St
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata.addXMLNSMapping()方法的一些代码示例,展示了XMPMetadata.addXMLNSMappi
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata.getSchemaByClass()方法的一些代码示例,展示了XMPMetadata.getSchemaByC
本文整理了Java中org.apache.jempbox.xmp.XMPMetadata.getPDFSchema()方法的一些代码示例,展示了XMPMetadata.getPDFSchema()的具
我是一名优秀的程序员,十分优秀!