org.drools.core.io.impl
Class DescrResource
java.lang.Object
org.drools.core.io.impl.BaseResource
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
| Methods inherited from class org.drools.core.io.impl.BaseResource |
addCategory, equals, getBytes, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath |
| Methods inherited from interface org.kie.api.io.Resource |
getSourcePath, getTargetPath, setSourcePath, setTargetPath |
DescrResource
public DescrResource()
DescrResource
public DescrResource(org.kie.api.definition.KieDescr descr)
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
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.