You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2020/01/17 19:01:56 UTC

[uima-uimaj] branch enhancement/UIMA-6128-hook-up-xcas-1-1 created (now 1be1e13)

This is an automated email from the ASF dual-hosted git repository.

schor pushed a change to branch enhancement/UIMA-6128-hook-up-xcas-1-1
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git.


      at 1be1e13  [UIMA-6128] hook up xcas-1-1 to save

This branch includes the following new commits:

     new 1be1e13  [UIMA-6128] hook up xcas-1-1 to save

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[uima-uimaj] 01/01: [UIMA-6128] hook up xcas-1-1 to save

Posted by sc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

schor pushed a commit to branch enhancement/UIMA-6128-hook-up-xcas-1-1
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git

commit 1be1e130449e55927c4b98ae98e954a778586ec0
Author: Marshall Schor <ms...@schor.com>
AuthorDate: Fri Jan 17 14:01:40 2020 -0500

    [UIMA-6128] hook up xcas-1-1 to save
    
    this was omitted by accident, already fixed in v3.
---
 uimaj-core/src/main/java/org/apache/uima/util/CasIOUtils.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/uimaj-core/src/main/java/org/apache/uima/util/CasIOUtils.java b/uimaj-core/src/main/java/org/apache/uima/util/CasIOUtils.java
index 9447830..745e35b 100644
--- a/uimaj-core/src/main/java/org/apache/uima/util/CasIOUtils.java
+++ b/uimaj-core/src/main/java/org/apache/uima/util/CasIOUtils.java
@@ -452,6 +452,9 @@ public class CasIOUtils {
         case XCAS:
           XCASSerializer.serialize(aCas, docOS, true); // true = formatted output
           break;
+        case XCAS_1_1:
+          XCASSerializer.serialize(aCas, docOS, true, true); // true = formatted output, xml 1.1
+          break;  
         case SERIALIZED:
           writeJavaObject(Serialization.serializeCAS(aCas), docOS);
           break;