Class SegmentWriter


  • public class SegmentWriter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SegmentWriter​(java.io.Writer annotationFileWriter, java.lang.String docText)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.io.Writer getFileWriter()  
      void setFileWriter​(java.io.Writer writer)  
      void writeSentence​(de.julielab.jcore.types.Sentence sentence)  
      void writeTokens​(org.apache.uima.cas.FSIterator<org.apache.uima.cas.text.AnnotationFS> tokenIter)  
      void writeTokensOnly​(org.apache.uima.cas.CAS cas)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SegmentWriter

        public SegmentWriter​(java.io.Writer annotationFileWriter,
                             java.lang.String docText)
    • Method Detail

      • getFileWriter

        public java.io.Writer getFileWriter()
      • setFileWriter

        public void setFileWriter​(java.io.Writer writer)
      • writeSentence

        public void writeSentence​(de.julielab.jcore.types.Sentence sentence)
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTokens

        public void writeTokens​(org.apache.uima.cas.FSIterator<org.apache.uima.cas.text.AnnotationFS> tokenIter)
      • writeTokensOnly

        public void writeTokensOnly​(org.apache.uima.cas.CAS cas)