org.drools.core.io.impl
Class ByteArrayResource
java.lang.Object
org.drools.core.io.impl.BaseResource
org.drools.core.io.impl.ByteArrayResource
- All Implemented Interfaces:
- Externalizable, Serializable, InternalResource, org.kie.api.io.Resource
public class ByteArrayResource
- extends BaseResource
- implements InternalResource, Externalizable
- See Also:
- Serialized Form
| Methods inherited from class org.drools.core.io.impl.BaseResource |
addCategory, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath |
| Methods inherited from interface org.kie.api.io.Resource |
getSourcePath, getTargetPath, setSourcePath, setTargetPath |
ByteArrayResource
public ByteArrayResource()
ByteArrayResource
public ByteArrayResource(byte[] bytes)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable- Overrides:
readExternal in class BaseResource
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable- Overrides:
writeExternal in class BaseResource
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface org.kie.api.io.Resource
- Throws:
IOException
getReader
public Reader getReader()
throws IOException
- Specified by:
getReader in interface org.kie.api.io.Resource
- Throws:
IOException
getBytes
public byte[] getBytes()
- Specified by:
getBytes in interface InternalResource- Overrides:
getBytes in class BaseResource
hasURL
public boolean hasURL()
- Specified by:
hasURL in interface InternalResource
getURL
public URL getURL()
throws IOException
- Specified by:
getURL in interface InternalResource
- Throws:
IOException
getLastModified
public long getLastModified()
- Specified by:
getLastModified in interface InternalResource
getLastRead
public long getLastRead()
- Specified by:
getLastRead in interface InternalResource
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface InternalResource
listResources
public Collection<org.kie.api.io.Resource> listResources()
- Specified by:
listResources in interface InternalResource
equals
public boolean equals(Object object)
- Overrides:
equals in class BaseResource
hashCode
public int hashCode()
- Overrides:
hashCode in class BaseResource
toString
public String toString()
- Overrides:
toString in class BaseResource
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.