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, toString
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 void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BaseResource
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseResource
IOException
public byte[] getBytes()
getBytes
in interface InternalResource
getBytes
in class BaseResource
public InputStream getInputStream() throws IOException
getInputStream
in interface org.kie.api.io.Resource
IOException
public String getEncoding()
getEncoding
in interface InternalResource
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 boolean isDirectory()
isDirectory
in interface InternalResource
public Collection<org.kie.api.io.Resource> listResources()
listResources
in interface InternalResource
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.