Package org.apache.stanbol.enhancer.nlp.json

Examples of org.apache.stanbol.enhancer.nlp.json.AnalyzedTextSerializer.serialize()


  }
 
  protected String getSerializedString() throws IOException {
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
        AnalyzedTextSerializer serializer = AnalyzedTextSerializer.getDefaultInstance();
        serializer.serialize(at, bout, null);
        byte[] data = bout.toByteArray();
       
        return new String(data,Charset.forName("UTF-8"));
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.