org.drools.io.impl
Class InputStreamResource

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

public class InputStreamResource
extends BaseResource
implements InternalResource

See Also:
Serialized Form

Constructor Summary
InputStreamResource(InputStream stream)
           
InputStreamResource(InputStream stream, String encoding)
           
 
Method Summary
 boolean exists()
           
 String getEncoding()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 long getLastRead()
           
 Reader getReader()
           
 URL getURL()
           
 boolean hasURL()
           
 boolean isDirectory()
           
 Collection<org.drools.io.Resource> listResources()
           
 
Methods inherited from class org.drools.io.impl.BaseResource
addCategory, getCategories, getConfiguration, getDescription, getName, getResourceType, setCategories, setConfiguration, setDescription, setName, setResourceType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.io.internal.InternalResource
addCategory, getCategories, getConfiguration, getDescription, getName, getResourceType, setCategories, setConfiguration, setDescription, setName, setResourceType
 

Constructor Detail

InputStreamResource

public InputStreamResource(InputStream stream)

InputStreamResource

public InputStreamResource(InputStream stream,
                           String encoding)
Method Detail

getInputStream

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

getEncoding

public String getEncoding()

getReader

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

getURL

public URL getURL()
           throws IOException
Specified by:
getURL in interface InternalResource
Throws:
IOException

hasURL

public boolean hasURL()
Specified by:
hasURL in interface InternalResource

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

exists

public boolean exists()
Specified by:
exists in interface InternalResource


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