Knowledge API Legacy5 Adapter 6.0.0.Beta5

org.drools.impl.adapters
Class ResourceAdapter

java.lang.Object
  extended by 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

Constructor Summary
ResourceAdapter(org.kie.api.io.Resource delegate)
           
 
Method Summary
 org.kie.api.io.ResourceConfiguration getConfiguration()
           
 org.kie.api.io.Resource getDelegate()
           
 InputStream getInputStream()
          Open an InputStream to the resource, the user must close this when finished.
 Reader getReader()
          Opens a Reader to the resource, the user most close this when finished.
 org.kie.api.io.ResourceType getResourceType()
           
 String getSourcePath()
           
 String getTargetPath()
           
 org.kie.api.io.Resource setConfiguration(org.kie.api.io.ResourceConfiguration conf)
           
 org.kie.api.io.Resource setResourceType(org.kie.api.io.ResourceType type)
           
 org.kie.api.io.Resource setSourcePath(String path)
           
 org.kie.api.io.Resource setTargetPath(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAdapter

public ResourceAdapter(org.kie.api.io.Resource delegate)
Method Detail

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()

Knowledge API Legacy5 Adapter 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.