test_class.declarator: testCas
test_class.modifier: private
test_class.original_string: private JCas testCas;
test_class.type: JCas
test_class.var_name: testCas
test_class.declarator: converterHelper
test_class.modifier: private
test_class.original_string: private UIMAXMLConverterHelper converterHelper;
test_class.type: UIMAXMLConverterHelper
test_class.var_name: converterHelper
test_class.file: core/src/test/java/edu/tuberlin/dima/textmining/jedi/core/util/UIMAXMLConverterHelperTest.java
test_class.identifier: UIMAXMLConverterHelperTest
test_case.body: @Test
      public void testConvert() throws Exception {
  
          testCas.reset();
  
  		URL input = Resources.getResource("sampleCAS/websitesamplecas.xml");
  
  		converterHelper.deserialize(Resources.toString(input, Charsets.UTF_8), testCas);
  
          Collection<NamedEntity> namedEntities = JCasUtil.select(testCas, NamedEntity.class);
  
          for (NamedEntity namedEntity : namedEntities) {
              System.out.println(namedEntity.getType() + " " + namedEntity.getCoveredText());
          }
          System.out.println(Joiner.on("").join(namedEntities));
  
  		Assert.assertThat(namedEntities, is(not(empty())));
  	}
test_case.class_method_signature: UIMAXMLConverterHelperTest.testConvert()
test_case.full_signature: @Test public void testConvert()
test_case.identifier: testConvert
test_case.invocations: reset getResource deserialize toString select println getType getCoveredText println join on assertThat is not empty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvert()
focal_class.declarator: LOG = LogFactory.getLog(UIMAXMLConverterHelper.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Log LOG = LogFactory.getLog(UIMAXMLConverterHelper.class);
focal_class.type: Log
focal_class.var_name: LOG
focal_class.declarator: ser
focal_class.modifier: private final
focal_class.original_string: private final XCASSerializer ser;
focal_class.type: XCASSerializer
focal_class.var_name: ser
focal_class.declarator: formattedOutput
focal_class.modifier: private final
focal_class.original_string: private final boolean formattedOutput;
focal_class.type: boolean
focal_class.var_name: formattedOutput
focal_class.file: core/src/main/java/edu/tuberlin/dima/textmining/jedi/core/util/UIMAXMLConverterHelper.java
focal_class.identifier: UIMAXMLConverterHelper
focal_class.class_method_signature: UIMAXMLConverterHelper.UIMAXMLConverterHelper(boolean formattedOutput)
focal_class.full_signature: public  UIMAXMLConverterHelper(boolean formattedOutput)
focal_class.identifier: UIMAXMLConverterHelper
focal_class.modifiers: public
focal_class.parameters: (boolean formattedOutput)
focal_class.signature:  UIMAXMLConverterHelper(boolean formattedOutput)
focal_class.class_method_signature: UIMAXMLConverterHelper.serialize(JCas jCas)
focal_class.full_signature: public String serialize(JCas jCas)
focal_class.identifier: serialize
focal_class.modifiers: public
focal_class.parameters: (JCas jCas)
focal_class.return: String
focal_class.signature: String serialize(JCas jCas)
focal_class.class_method_signature: UIMAXMLConverterHelper.serialize(JCas jCas, OutputStream outputStream)
focal_class.full_signature: public boolean serialize(JCas jCas, OutputStream outputStream)
focal_class.identifier: serialize
focal_class.modifiers: public
focal_class.parameters: (JCas jCas, OutputStream outputStream)
focal_class.return: boolean
focal_class.signature: boolean serialize(JCas jCas, OutputStream outputStream)
focal_class.class_method_signature: UIMAXMLConverterHelper.deserialize(InputStream inputStream, JCas newElement)
focal_class.full_signature: public JCas deserialize(InputStream inputStream, JCas newElement)
focal_class.identifier: deserialize
focal_class.modifiers: public
focal_class.parameters: (InputStream inputStream, JCas newElement)
focal_class.return: JCas
focal_class.signature: JCas deserialize(InputStream inputStream, JCas newElement)
focal_class.class_method_signature: UIMAXMLConverterHelper.sanitizeString(String input)
focal_class.full_signature: public static String sanitizeString(String input)
focal_class.identifier: sanitizeString
focal_class.modifiers: public static
focal_class.parameters: (String input)
focal_class.return: String
focal_class.signature: String sanitizeString(String input)
focal_class.class_method_signature: UIMAXMLConverterHelper.replaceInvalidXmlChars(char[] aChars)
focal_class.full_signature: private static void replaceInvalidXmlChars(char[] aChars)
focal_class.identifier: replaceInvalidXmlChars
focal_class.modifiers: private static
focal_class.parameters: (char[] aChars)
focal_class.return: void
focal_class.signature: void replaceInvalidXmlChars(char[] aChars)
focal_class.class_method_signature: UIMAXMLConverterHelper.deserialize(String input, JCas newElement)
focal_class.full_signature: public JCas deserialize(String input, JCas newElement)
focal_class.identifier: deserialize
focal_class.modifiers: public
focal_class.parameters: (String input, JCas newElement)
focal_class.return: JCas
focal_class.signature: JCas deserialize(String input, JCas newElement)
focal_method.body: public JCas deserialize(InputStream inputStream, JCas newElement) throws IOException, UIMAException, InterruptedException, SAXException {
  
          try {
              newElement.reset();
              // deserialize CAS
              XCASDeserializer.deserialize(inputStream, newElement.getCas());
              //XmiCasDeserializer.deserialize(inputStream, newElement.getCas());
              return newElement;
          } finally {
              IOUtils.closeQuietly(inputStream);
          }
  
      }
focal_method.class_method_signature: UIMAXMLConverterHelper.deserialize(InputStream inputStream, JCas newElement)
focal_method.full_signature: public JCas deserialize(InputStream inputStream, JCas newElement)
focal_method.identifier: deserialize
focal_method.invocations: reset deserialize getCas closeQuietly
focal_method.modifiers: public
focal_method.parameters: (InputStream inputStream, JCas newElement)
focal_method.return: JCas
focal_method.signature: JCas deserialize(InputStream inputStream, JCas newElement)