Drools :: Core 6.0.0.Beta5

org.drools.core.io.impl
Class DescrResource

java.lang.Object
  extended by org.drools.core.io.impl.BaseResource
      extended by org.drools.core.io.impl.DescrResource
All Implemented Interfaces:
Externalizable, Serializable, InternalResource, org.kie.api.io.Resource

public class DescrResource
extends BaseResource
implements InternalResource, Externalizable

See Also:
Serialized Form

Constructor Summary
DescrResource()
           
DescrResource(org.kie.api.definition.KieDescr descr)
           
 
Method Summary
 org.kie.api.definition.KieDescr getDescr()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 long getLastRead()
           
 Reader getReader()
           
 URL getURL()
           
 boolean hasURL()
           
 boolean isDirectory()
           
 Collection<org.kie.api.io.Resource> listResources()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.core.io.impl.BaseResource
addCategory, equals, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.core.io.internal.InternalResource
addCategory, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceType
 
Methods inherited from interface org.kie.api.io.Resource
getSourcePath, getTargetPath, setSourcePath, setTargetPath
 

Constructor Detail

DescrResource

public DescrResource()

DescrResource

public DescrResource(org.kie.api.definition.KieDescr descr)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class BaseResource
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class BaseResource
Throws:
IOException

getURL

public URL getURL()
           throws IOException
Specified by:
getURL in interface InternalResource
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface org.kie.api.io.Resource
Throws:
IOException

getReader

public Reader getReader()
                 throws IOException
Specified by:
getReader in interface org.kie.api.io.Resource
Throws:
IOException

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface InternalResource

getLastRead

public long getLastRead()
Specified by:
getLastRead in interface InternalResource

getDescr

public org.kie.api.definition.KieDescr getDescr()

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in interface InternalResource

listResources

public Collection<org.kie.api.io.Resource> listResources()
Specified by:
listResources in interface InternalResource

hasURL

public boolean hasURL()
Specified by:
hasURL in interface InternalResource

toString

public String toString()
Overrides:
toString in class BaseResource

Drools :: Core 6.0.0.Beta5

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