Package org.drools.io
Class InputStreamResource
java.lang.Object
org.drools.io.BaseResource
org.drools.io.InputStreamResource
- All Implemented Interfaces:
Externalizable,Serializable,InternalResource,Resource
- See Also:
-
Field Summary
Fields inherited from class org.drools.io.BaseResource
bytes -
Constructor Summary
ConstructorsConstructorDescriptionInputStreamResource(InputStream stream) InputStreamResource(InputStream stream, String encoding) -
Method Summary
Methods inherited from class org.drools.io.BaseResource
addCategory, equals, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.io.InternalResource
addCategory, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceTypeMethods inherited from interface org.kie.api.io.Resource
getSourcePath, getTargetPath, setSourcePath, setTargetPath
-
Constructor Details
-
InputStreamResource
public InputStreamResource() -
InputStreamResource
-
InputStreamResource
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classBaseResource- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classBaseResource- Throws:
IOException
-
getBytes
public byte[] getBytes()- Specified by:
getBytesin interfaceInternalResource- Overrides:
getBytesin classBaseResource
-
getInputStream
- Specified by:
getInputStreamin interfaceResource- Throws:
IOException
-
getEncoding
- Specified by:
getEncodingin interfaceInternalResource
-
getReader
- Specified by:
getReaderin interfaceResource- Throws:
IOException
-
getURL
- Specified by:
getURLin interfaceInternalResource- Throws:
IOException
-
hasURL
public boolean hasURL()- Specified by:
hasURLin interfaceInternalResource
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceInternalResource
-
listResources
- Specified by:
listResourcesin interfaceInternalResource
-