Class XmiWriterCasConsumer

    • Field Detail

      • PARAM_OUTPUTDIR

        public static final java.lang.String PARAM_OUTPUTDIR
        Name of configuration parameter that must be set to the path of a directory into which the output files will be written.
        See Also:
        Constant Field Values
      • mOutputDir

        private java.io.File mOutputDir
      • mDocNum

        private int mDocNum
    • Constructor Detail

      • XmiWriterCasConsumer

        public XmiWriterCasConsumer()
    • Method Detail

      • writeXmi

        private void writeXmi​(CAS aCas,
                              java.io.File name,
                              java.lang.String modelFileName)
                       throws java.io.IOException,
                              org.xml.sax.SAXException
        Serialize a CAS to a file in XMI format
        Parameters:
        aCas - CAS to serialize
        name - output file
        Throws:
        org.xml.sax.SAXException - -
        java.lang.Exception - -
        ResourceProcessException - -
        java.io.IOException
      • getDescription

        public static CasConsumerDescription getDescription()
                                                     throws InvalidXMLException
        Parses and returns the descriptor for this collection reader. The descriptor is stored in the uima.jar file and located using the ClassLoader.
        Returns:
        an object containing all of the information parsed from the descriptor.
        Throws:
        InvalidXMLException - if the descriptor is invalid or missing
      • getDescriptorURL

        public static java.net.URL getDescriptorURL()