Results 1 to 1 of 1
- 08-03-2016, 10:00 AM #1
Member
- Join Date
- Aug 2016
- Posts
- 2
- Rep Power
- 0
Add Metadata to OpenOffice with Java
Hey ,
I've written an OO Extension and I read out the metadata with Apache Tika. But now I want to edit or add sth in the metadata, which isn't possible with Apache Tika (or I don't know how). Does sb know another library or method how to do that?
This is how i read out the metadata:
Java Code:Parser parser = new AutoDetectParser(); BodyContentHandler handler = new BodyContentHandler(); Metadata metadata = new Metadata(); try { FileInputStream inputstream = new FileInputStream(replaceBackslashWithSlash(xDocEL.getURL())); ParseContext context = new ParseContext(); parser.parse(inputstream, handler, metadata, context); } catch (Exception ex) { System.out.println(ex); }
Similar Threads
-
Looking for pure Java API to read metadata from an MP4 file.
By SRomero123 in forum New To JavaReplies: 1Last Post: 05-13-2012, 04:35 AM -
Obba: A Java Object Handler for Spreadsheets (Excel and OpenOffice) - New Version 3.0
By cpf in forum Java SoftwareReplies: 0Last Post: 04-11-2012, 11:02 AM -
How to access data at OpenOffice Base file (*.odb) from my java application
By atvienna in forum JDBCReplies: 4Last Post: 07-06-2010, 10:40 AM -
Java Classes to help extract metadata from Web pages
By stargazerr in forum New To JavaReplies: 2Last Post: 02-21-2009, 04:54 AM -
Using openoffice in java application
By urzaaa in forum AWT / SwingReplies: 5Last Post: 08-25-2008, 02:38 PM
Bookmarks