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 String
getEncoding()
InputStream
getInputStream()
Reader
getReader()
URL
getURL()
boolean
hasURL()
boolean
isDirectory()
Collection<org.kie.api.io.Resource>
listResources()
String
toString()
-
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:
getURL
in interfaceInternalResource
- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceorg.kie.api.io.Resource
- Throws:
IOException
-
getReader
public Reader getReader()
- Specified by:
getReader
in interfaceorg.kie.api.io.Resource
-
getEncoding
public String getEncoding()
- Specified by:
getEncoding
in interfaceInternalResource
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory
in interfaceInternalResource
-
listResources
public Collection<org.kie.api.io.Resource> listResources()
- Specified by:
listResources
in interfaceInternalResource
-
hasURL
public boolean hasURL()
- Specified by:
hasURL
in interfaceInternalResource
-
toString
public String toString()
- Overrides:
toString
in classBaseResource
-
-