public class ByteArrayResource extends BaseResource implements InternalResource, Externalizable
Constructor and Description |
---|
ByteArrayResource() |
ByteArrayResource(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
InputStream |
getInputStream() |
long |
getLastModified() |
long |
getLastRead() |
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, setTargetPath
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addCategory, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceType
public ByteArrayResource()
public ByteArrayResource(byte[] bytes)
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 InputStream getInputStream() throws IOException
getInputStream
in interface org.kie.api.io.Resource
IOException
public Reader getReader() throws IOException
getReader
in interface org.kie.api.io.Resource
IOException
public boolean hasURL()
hasURL
in interface InternalResource
public URL getURL() throws IOException
getURL
in interface InternalResource
IOException
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
public boolean equals(Object object)
equals
in class BaseResource
public int hashCode()
hashCode
in class BaseResource
public String toString()
toString
in class BaseResource
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.