org.drools.impl.adapters
Class ResourceAdapter
java.lang.Object
org.drools.impl.adapters.ResourceAdapter
- All Implemented Interfaces:
- Serializable, org.kie.api.io.Resource
public class ResourceAdapter
- extends Object
- implements Resource
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceAdapter
public ResourceAdapter(org.kie.api.io.Resource delegate)
getInputStream
public InputStream getInputStream()
throws IOException
- Description copied from interface:
Resource
- Open an InputStream to the resource, the user must close this when finished.
- Specified by:
getInputStream in interface org.kie.api.io.Resource
- Throws:
IOException
getReader
public Reader getReader()
throws IOException
- Description copied from interface:
Resource
- Opens a Reader to the resource, the user most close this when finished.
- Specified by:
getReader in interface org.kie.api.io.Resource
- Throws:
IOException
getSourcePath
public String getSourcePath()
- Specified by:
getSourcePath in interface org.kie.api.io.Resource
getTargetPath
public String getTargetPath()
- Specified by:
getTargetPath in interface org.kie.api.io.Resource
getResourceType
public org.kie.api.io.ResourceType getResourceType()
- Specified by:
getResourceType in interface org.kie.api.io.Resource
getConfiguration
public org.kie.api.io.ResourceConfiguration getConfiguration()
- Specified by:
getConfiguration in interface org.kie.api.io.Resource
setSourcePath
public org.kie.api.io.Resource setSourcePath(String path)
- Specified by:
setSourcePath in interface org.kie.api.io.Resource
setTargetPath
public org.kie.api.io.Resource setTargetPath(String path)
- Specified by:
setTargetPath in interface org.kie.api.io.Resource
setResourceType
public org.kie.api.io.Resource setResourceType(org.kie.api.io.ResourceType type)
- Specified by:
setResourceType in interface org.kie.api.io.Resource
setConfiguration
public org.kie.api.io.Resource setConfiguration(org.kie.api.io.ResourceConfiguration conf)
- Specified by:
setConfiguration in interface org.kie.api.io.Resource
getDelegate
public org.kie.api.io.Resource getDelegate()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.