public class ReaderResource extends BaseResource implements InternalResource
Constructor and Description |
---|
ReaderResource() |
ReaderResource(Reader reader) |
ReaderResource(Reader reader,
org.kie.api.io.ResourceType type) |
ReaderResource(Reader reader,
String encoding) |
ReaderResource(Reader reader,
String encoding,
org.kie.api.io.ResourceType type) |
Modifier and Type | Method and Description |
---|---|
String |
getEncoding() |
InputStream |
getInputStream() |
long |
getLastModified() |
long |
getLastRead() |
Reader |
getReader() |
URL |
getURL() |
boolean |
hasURL() |
boolean |
isDirectory() |
Collection<org.kie.api.io.Resource> |
listResources() |
String |
toString() |
addCategory, equals, getBytes, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, readExternal, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath, writeExternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addCategory, getBytes, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceType
public ReaderResource()
public ReaderResource(Reader reader)
public ReaderResource(Reader reader, org.kie.api.io.ResourceType type)
public URL getURL() throws IOException
getURL
in interface InternalResource
IOException
public InputStream getInputStream() throws IOException
getInputStream
in interface org.kie.api.io.Resource
IOException
public long getLastModified()
getLastModified
in interface InternalResource
public long getLastRead()
getLastRead
in interface InternalResource
public Reader getReader()
getReader
in interface org.kie.api.io.Resource
public String getEncoding()
getEncoding
in interface InternalResource
public boolean isDirectory()
isDirectory
in interface InternalResource
public Collection<org.kie.api.io.Resource> listResources()
listResources
in interface InternalResource
public boolean hasURL()
hasURL
in interface InternalResource
public String toString()
toString
in class BaseResource
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.