Package de.julielab.xml.binary
Class BinaryXmiBuilder
- java.lang.Object
-
- de.julielab.xml.binary.BinaryXmiBuilder
-
public class BinaryXmiBuilder extends Object
This class replaces the
XmiBuilderfor 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 Summary
Constructors Constructor Description BinaryXmiBuilder(Map<String,String> nsAndXmiVersionMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayOutputStreambuildXmi(BinaryDecodingResult decodingResult)ByteArrayOutputStreambuildXmi(BinaryDecodingResult decodingResult, boolean makeValidXmi)Map<String,String>getNamespaces()
-
-
-
Method Detail
-
buildXmi
public ByteArrayOutputStream buildXmi(BinaryDecodingResult decodingResult)
-
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:
-
-