Drools :: Core 6.0.0.Beta5

org.drools.core.io.impl
Class ByteArrayResource

java.lang.Object
  extended by org.drools.core.io.impl.BaseResource
      extended by 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

Constructor Summary
ByteArrayResource()
           
ByteArrayResource(byte[] bytes)
           
 
Method Summary
 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)
           
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.core.io.internal.InternalResource
addCategory, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceType
 
Methods inherited from interface org.kie.api.io.Resource
getSourcePath, getTargetPath, setSourcePath, setTargetPath
 

Constructor Detail

ByteArrayResource

public ByteArrayResource()

ByteArrayResource

public ByteArrayResource(byte[] bytes)
Method Detail

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

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

Drools :: Core 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.