Class IOUtils


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

      Constructors 
      Constructor Description
      IOUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void arraylist_to_file​(java.util.ArrayList array, java.io.File file)
      Generate File form ArrayList
      static java.util.ArrayList<java.lang.String> file_to_arraylist​(java.io.File file)
      Generate ArrayList from File
      static java.util.HashMap file_to_hashmapKeys​(java.io.File file)  
      static org.apache.uima.cas.text.AnnotationFS findCoverFS​(org.apache.uima.cas.CAS aCAS, org.apache.uima.cas.text.AnnotationFS annot, org.apache.uima.cas.Type coverFsType)
      Michael Scor implementation Finds the covering annotation of the specified coverFSType for the given annotation.
      static void hashmapKeys_to_file​(java.util.HashMap array, java.io.File file)
      Generate File form ArrayList
      • Methods inherited from class java.lang.Object

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

      • IOUtils

        public IOUtils()
    • Method Detail

      • file_to_arraylist

        public static java.util.ArrayList<java.lang.String> file_to_arraylist​(java.io.File file)
                                                                       throws java.io.IOException
        Generate ArrayList from File
        Parameters:
        file -
        Returns:
        Throws:
        java.io.IOException
      • arraylist_to_file

        public static void arraylist_to_file​(java.util.ArrayList array,
                                             java.io.File file)
                                      throws java.io.IOException
        Generate File form ArrayList
        Parameters:
        array -
        file -
        Throws:
        java.io.IOException
      • hashmapKeys_to_file

        public static void hashmapKeys_to_file​(java.util.HashMap array,
                                               java.io.File file)
                                        throws java.io.IOException
        Generate File form ArrayList
        Parameters:
        array -
        file -
        Throws:
        java.io.IOException
      • file_to_hashmapKeys

        public static java.util.HashMap file_to_hashmapKeys​(java.io.File file)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • findCoverFS

        public static org.apache.uima.cas.text.AnnotationFS findCoverFS​(org.apache.uima.cas.CAS aCAS,
                                                                        org.apache.uima.cas.text.AnnotationFS annot,
                                                                        org.apache.uima.cas.Type coverFsType)
        Michael Scor implementation Finds the covering annotation of the specified coverFSType for the given annotation.
        Parameters:
        aCAS - a CAS to search in
        annot - current annotation
        coverFsType - covering annotation type to search for
        Returns:
        returns the covering annotation FS or null if the covering annotation was not found.