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, getBytes, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, readExternal, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath, toString, writeExternalclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddCategory, getBytes, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceTypepublic InputStreamResource()
public InputStreamResource(InputStream stream)
public InputStreamResource(InputStream stream, String encoding)
public InputStream getInputStream() throws IOException
getInputStream in interface org.kie.api.io.ResourceIOExceptionpublic String getEncoding()
getEncoding in interface InternalResourcepublic Reader getReader() throws IOException
getReader in interface org.kie.api.io.ResourceIOExceptionpublic URL getURL() throws IOException
getURL in interface InternalResourceIOExceptionpublic boolean hasURL()
hasURL in interface InternalResourcepublic long getLastModified()
getLastModified in interface InternalResourcepublic long getLastRead()
getLastRead in interface InternalResourcepublic boolean isDirectory()
isDirectory in interface InternalResourcepublic Collection<org.kie.api.io.Resource> listResources()
listResources in interface InternalResourceCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.