@Override public String toString() { return annotation().toString(); }
/** * Append a CoreDocument to this output stream. * * @param document The CoreDocument to serialize (its internal annotation is serialized) * @param os The output stream to serialize to * @return The output stream which should be closed * @throws IOException */ public OutputStream writeCoreDocument(CoreDocument document, OutputStream os) throws IOException { Annotation wrappedAnnotation = document.annotation(); return write(wrappedAnnotation, os); }
@Override public String toString() { return annotation().toString(); }
/** * Append a CoreDocument to this output stream. * * @param document The CoreDocument to serialize (its internal annotation is serialized) * @param os The output stream to serialize to * @return The output stream which should be closed * @throws IOException */ public OutputStream writeCoreDocument(CoreDocument document, OutputStream os) throws IOException { Annotation wrappedAnnotation = document.annotation(); return write(wrappedAnnotation, os); }