Package org.drools.io
Class DescrResource
- java.lang.Object
-
- org.drools.io.BaseResource
-
- org.drools.io.DescrResource
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,InternalResource,org.kie.api.io.Resource
public class DescrResource extends BaseResource implements InternalResource, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.drools.io.BaseResource
bytes
-
-
Constructor Summary
Constructors Constructor Description DescrResource()DescrResource(org.kie.api.definition.KieDescr descr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.api.definition.KieDescrgetDescr()java.lang.StringgetEncoding()java.io.InputStreamgetInputStream()java.io.ReadergetReader()java.net.URLgetURL()booleanhasURL()booleanisDirectory()java.util.Collection<org.kie.api.io.Resource>listResources()voidreadExternal(java.io.ObjectInput in)java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class org.drools.io.BaseResource
addCategory, equals, getBytes, 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.io.InternalResource
addCategory, getBytes, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceType
-
-
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Overrides:
readExternalin classBaseResource- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Overrides:
writeExternalin classBaseResource- Throws:
java.io.IOException
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncodingin interfaceInternalResource
-
getURL
public java.net.URL getURL() throws java.io.IOException- Specified by:
getURLin interfaceInternalResource- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceorg.kie.api.io.Resource- Throws:
java.io.IOException
-
getReader
public java.io.Reader getReader() throws java.io.IOException- Specified by:
getReaderin interfaceorg.kie.api.io.Resource- Throws:
java.io.IOException
-
getDescr
public org.kie.api.definition.KieDescr getDescr()
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceInternalResource
-
listResources
public java.util.Collection<org.kie.api.io.Resource> listResources()
- Specified by:
listResourcesin interfaceInternalResource
-
hasURL
public boolean hasURL()
- Specified by:
hasURLin interfaceInternalResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBaseResource
-
-