Package org.drools.io
Interface InternalResource
- All Superinterfaces:
Resource,Serializable
- All Known Implementing Classes:
BaseResource,ByteArrayResource,ClassPathResource,DescrResource,FileSystemResource,InputStreamResource,ReaderResource
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(String category) byte[]getBytes()Returns the description of the resource.getURL()booleanhasURL()booleanvoidsetCategories(String categories) setConfiguration(ResourceConfiguration configuration) voidsetDescription(String description) setResourceType(ResourceType resourceType) Methods inherited from interface org.kie.api.io.Resource
getInputStream, getReader, getSourcePath, getTargetPath, setSourcePath, setTargetPath
-
Method Details
-
setResourceType
- Specified by:
setResourceTypein interfaceResource
-
getResourceType
ResourceType getResourceType()- Specified by:
getResourceTypein interfaceResource
-
getConfiguration
ResourceConfiguration getConfiguration()- Specified by:
getConfigurationin interfaceResource
-
setConfiguration
- Specified by:
setConfigurationin interfaceResource
-
getURL
- Throws:
IOException
-
hasURL
boolean hasURL() -
isDirectory
boolean isDirectory() -
listResources
Collection<Resource> listResources() -
getDescription
String getDescription()Returns the description of the resource. This is just a text description of the resource used to add more information about it. This is not a mandatory attribute- Returns:
- the name of the resource, or null if is not set.
-
setDescription
-
getCategories
-
setCategories
-
addCategory
-
getBytes
byte[] getBytes() -
getEncoding
String getEncoding()
-