Class DescriptorUtils
- java.lang.Object
-
- de.julielab.jcore.pipeline.builder.base.utils.DescriptorUtils
-
public class DescriptorUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description DescriptorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>getDescRoots()static Map<URI,org.apache.uima.resource.ResourceSpecifier>searchDescriptor(File artifact)Searches theartifactfor all descriptor files ending in.xmland residing directly in../desc/.static org.apache.uima.resource.ResourceSpecifiersearchDescriptor(File artifactPath, String descLocation)Searches theartifactfor a descriptor that is given bydescLocation.
-
-
-
Method Detail
-
searchDescriptor
public static Map<URI,org.apache.uima.resource.ResourceSpecifier> searchDescriptor(File artifact) throws IOException
Searches theartifactfor all descriptor files ending in.xmland 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 theartifactfor a descriptor that is given bydescLocation.- Parameters:
artifactPath-descLocation-- Returns:
- Throws:
IOException
-
-