You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2016/06/15 17:33:15 UTC

[05/10] tika git commit: TIKA-2008 -- change owner metadata key from TikaCoreProperties.CREATOR to TikaCoreProperties.MODIFIER

TIKA-2008 -- change owner metadata key from TikaCoreProperties.CREATOR to TikaCoreProperties.MODIFIER


Project: http://git-wip-us.apache.org/repos/asf/tika/repo
Commit: http://git-wip-us.apache.org/repos/asf/tika/commit/592ae6a6
Tree: http://git-wip-us.apache.org/repos/asf/tika/tree/592ae6a6
Diff: http://git-wip-us.apache.org/repos/asf/tika/diff/592ae6a6

Branch: refs/heads/TIKA-1508
Commit: 592ae6a6cda88ed33c667e1b9211cd7c393710c4
Parents: f7fe685
Author: tballison <ta...@mitre.org>
Authored: Wed Jun 15 10:03:44 2016 -0400
Committer: tballison <ta...@mitre.org>
Committed: Wed Jun 15 10:03:44 2016 -0400

----------------------------------------------------------------------
 .../java/org/apache/tika/parser/microsoft/MSOwnerFileParser.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tika/blob/592ae6a6/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/MSOwnerFileParser.java
----------------------------------------------------------------------
diff --git a/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/MSOwnerFileParser.java b/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/MSOwnerFileParser.java
index 02c07a6..c7019f2 100644
--- a/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/MSOwnerFileParser.java
+++ b/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/MSOwnerFileParser.java
@@ -66,7 +66,7 @@ public class MSOwnerFileParser extends AbstractParser {
         IOUtils.readFully(stream, asciiNameBytes);
         int asciiNameLength = (int)asciiNameBytes[0];//don't need to convert to unsigned int because it can't be that long
         String asciiName = new String(asciiNameBytes, 1, asciiNameLength, StandardCharsets.US_ASCII);
-        metadata.set(TikaCoreProperties.CREATOR, asciiName);
+        metadata.set(TikaCoreProperties.MODIFIER, asciiName);
 
         int unicodeCharLength = stream.read();
         if (unicodeCharLength > 0) {
@@ -74,7 +74,7 @@ public class MSOwnerFileParser extends AbstractParser {
             byte[] unicodeBytes = new byte[unicodeCharLength * 2];
             IOUtils.readFully(stream, unicodeBytes);
             String unicodeName = new String(unicodeBytes, StandardCharsets.UTF_16LE);
-            metadata.set(TikaCoreProperties.CREATOR, unicodeName);
+            metadata.set(TikaCoreProperties.MODIFIER, unicodeName);
         }
         xhtml.endDocument();
     }