Package org.drools.core.io.impl
Class ReaderResource
- java.lang.Object
-
- org.drools.core.io.impl.BaseResource
-
- org.drools.core.io.impl.ReaderResource
-
- All Implemented Interfaces:
Externalizable,Serializable,InternalResource,org.kie.api.io.Resource
public class ReaderResource extends BaseResource implements InternalResource
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.drools.core.io.impl.BaseResource
bytes
-
-
Constructor Summary
Constructors Constructor Description ReaderResource()ReaderResource(Reader reader)ReaderResource(Reader reader, String encoding)ReaderResource(Reader reader, String encoding, org.kie.api.io.ResourceType type)ReaderResource(Reader reader, org.kie.api.io.ResourceType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncoding()InputStreamgetInputStream()ReadergetReader()URLgetURL()booleanhasURL()booleanisDirectory()Collection<org.kie.api.io.Resource>listResources()StringtoString()-
Methods inherited from class org.drools.core.io.impl.BaseResource
addCategory, equals, getBytes, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, readExternal, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath, writeExternal
-
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, getBytes, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceType
-
-
-
-
Method Detail
-
getURL
public URL getURL() throws IOException
- Specified by:
getURLin interfaceInternalResource- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceorg.kie.api.io.Resource- Throws:
IOException
-
getReader
public Reader getReader()
- Specified by:
getReaderin interfaceorg.kie.api.io.Resource
-
getEncoding
public String getEncoding()
- Specified by:
getEncodingin interfaceInternalResource
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceInternalResource
-
listResources
public Collection<org.kie.api.io.Resource> listResources()
- Specified by:
listResourcesin interfaceInternalResource
-
hasURL
public boolean hasURL()
- Specified by:
hasURLin interfaceInternalResource
-
toString
public String toString()
- Overrides:
toStringin classBaseResource
-
-