[
https://issues.apache.org/jira/browse/UIMA-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421375#comment-15421375
]
Richard Eckart de Castilho commented on UIMA-4685:
--------------------------------------------------
Btw. I was never 100% sure whether the TS/TSI that is supplied in the method
call should take precedence over the one in the external form or not. The
use-case for the TS/TSI parameter for me has been so far to allow lenient
loading of form 6 for cases where no TS/TSI is stored in the external form. One
could argue that if the programmer explicitly specifies a TS/TSI on the method,
it should take precedence over the user-supplied TS/TSI because in that way the
programmer can ensure/enforce the TS/TSI being used. On the other hand, letting
the TSI/TS in the external form take precedence allows conveniently loading a
mixed collection of where some contain TS/TSI information and some don't (for
the latter, the programmer-supplied default TS/TSI is used).
> Add Common Load/Save APIs, including type system and index defs, for various
> CAS formats
> ----------------------------------------------------------------------------------------
>
> Key: UIMA-4685
> URL: https://issues.apache.org/jira/browse/UIMA-4685
> Project: UIMA
> Issue Type: New Feature
> Components: CasEditor, Core Java Framework
> Affects Versions: 2.8.1SDK
> Reporter: Peter Klügl
> Assignee: Peter Klügl
> Fix For: 2.9.0SDK
>
> Attachments: BinaryCasIOUtils.java, caseditor.csv,
> caseditor_bincas.csv
>
>
> Create a new CasIOUtils class having common load and save APIs, with optional
> saving of type system and index definitions, in all the various CAS
> serialization formats (except JSON). Implement heuristic discovery for
> deserialization to support automatic selection of the right kind of
> deserializer. Update the headers for binary to support indicating they have
> the type system included (not used yet). Update the SerialFormat to support
> this. Update the CasEditor and other components to use this new API.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)