Class BinaryXmiBuilder


  • public class BinaryXmiBuilder
    extends Object

    This class replaces the XmiBuilder for the assembly of an XMI document from the base document and a set of annotation modules in the case that the document and annotation modules come in the binary format.

    • Constructor Detail

      • BinaryXmiBuilder

        public BinaryXmiBuilder​(Map<String,​String> nsAndXmiVersionMap)
    • Method Detail

      • buildXmi

        public ByteArrayOutputStream buildXmi​(BinaryDecodingResult decodingResult,
                                              boolean makeValidXmi)
        Parameters:
        decodingResult -
        makeValidXmi - If set to true, an XML header, XMI namespaces, the cas:NULL element and the cas:View element are created, everything wrapped into a xmi:XMI element. Otherwise, the input data is purely decoded to XML without any additions.
        Returns: