Class DescriptorUtils


  • public class DescriptorUtils
    extends Object
    • Constructor Detail

      • DescriptorUtils

        public DescriptorUtils()
    • Method Detail

      • searchDescriptor

        public static Map<URI,​org.apache.uima.resource.ResourceSpecifier> searchDescriptor​(File artifact)
                                                                                          throws IOException
        Searches the artifact for all descriptor files ending in .xml and residing directly in ../desc/.
        Parameters:
        artifact -
        Returns:
        Descriptor File as InputStream
        Throws:
        IOException
      • searchDescriptor

        public static org.apache.uima.resource.ResourceSpecifier searchDescriptor​(File artifactPath,
                                                                                  String descLocation)
                                                                           throws IOException
        Searches the artifact for a descriptor that is given by descLocation.
        Parameters:
        artifactPath -
        descLocation -
        Returns:
        Throws:
        IOException