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