public class InputStreamResource extends BaseResource implements InternalResource
bytes| Constructor and Description |
|---|
InputStreamResource() |
InputStreamResource(InputStream stream) |
InputStreamResource(InputStream stream,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getEncoding() |
InputStream |
getInputStream() |
Reader |
getReader() |
URL |
getURL() |
boolean |
hasURL() |
boolean |
isDirectory() |
Collection<org.kie.api.io.Resource> |
listResources() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
addCategory, equals, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddCategory, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceTypepublic InputStreamResource()
public InputStreamResource(InputStream stream)
public InputStreamResource(InputStream stream, String encoding)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseResourceIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseResourceIOExceptionpublic byte[] getBytes()
getBytes in interface InternalResourcegetBytes in class BaseResourcepublic 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 boolean isDirectory()
isDirectory in interface InternalResourcepublic Collection<org.kie.api.io.Resource> listResources()
listResources in interface InternalResourceCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.