public class InputStreamResource extends BaseResource implements InternalResource
Constructor and Description |
---|
InputStreamResource() |
InputStreamResource(InputStream stream) |
InputStreamResource(InputStream stream,
String encoding) |
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() |
addCategory, equals, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, readExternal, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath, toString, writeExternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addCategory, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceType
public InputStreamResource()
public InputStreamResource(InputStream stream)
public InputStreamResource(InputStream stream, String encoding)
public InputStream getInputStream() throws IOException
getInputStream
in interface org.kie.api.io.Resource
IOException
public String getEncoding()
public Reader getReader() throws IOException
getReader
in interface org.kie.api.io.Resource
IOException
public URL getURL() throws IOException
getURL
in interface InternalResource
IOException
public boolean hasURL()
hasURL
in interface InternalResource
public long getLastModified()
getLastModified
in interface InternalResource
public long getLastRead()
getLastRead
in interface InternalResource
public boolean isDirectory()
isDirectory
in interface InternalResource
public Collection<org.kie.api.io.Resource> listResources()
listResources
in interface InternalResource
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.