[ https://issues.apache.org/jira/browse/UIMA-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755335#action_12755335 ]
Tim Cawley commented on UIMA-1570: ---------------------------------- I agree nobody souldn't be able to change the mimetype. My problem is I can't know it when I set the data. I wish to set the mimetype later in the pipeline when I have discovered it. The following code appears to work int featureCode = jcas.getTypeSystem().getLowLevelTypeSystem().ll_getCodeForFeature(view.getSofa().getType().getFeatureByBaseName(CAS.FEATURE_BASE_NAME_SOFAID)); view.getLowLevelCas().ll_setStringValue(view.getSofa().getSofaRef(), featureCode, mime); I feel like I'm in places your average annotator writer souldn't be and think there should be a higher level method that lets me set the mimetype if its never been set. Cheers, Tim > Unable to set mimetime on a view post the data being added > ---------------------------------------------------------- > > Key: UIMA-1570 > URL: https://issues.apache.org/jira/browse/UIMA-1570 > Project: UIMA > Issue Type: Improvement > Components: Core Java Framework > Reporter: Tim Cawley > Priority: Trivial > > I wish to be able to set the mimetype on a view post setting the data. There > is currently a getMimtype() function but I can't find a setMimtype() function. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.