org.drools.io.impl
Class ByteArrayResource

java.lang.Object
  extended by org.drools.io.impl.BaseResource
      extended by org.drools.io.impl.ByteArrayResource
All Implemented Interfaces:
Serializable, InternalResource, org.drools.io.Resource

public class ByteArrayResource
extends BaseResource
implements InternalResource

See Also:
Serialized Form

Constructor Summary
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.drools.io.Resource> listResources()
           
 String toString()
           
 
Methods inherited from class org.drools.io.impl.BaseResource
getConfiguration, getDescription, getName, getResourceType, setConfiguration, setDescription, setName, setResourceType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.io.internal.InternalResource
getConfiguration, getDescription, getName, getResourceType, setConfiguration, setDescription, setName, setResourceType
 

Constructor Detail

ByteArrayResource

public ByteArrayResource(byte[] bytes)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface org.drools.io.Resource
Throws:
IOException

getReader

public Reader getReader()
                 throws IOException
Specified by:
getReader in interface org.drools.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.drools.io.Resource> listResources()
Specified by:
listResources in interface InternalResource

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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