ua.gradsoft.termware.termloaders
Class GenericInputStreamSource

java.lang.Object
  extended by ua.gradsoft.termware.termloaders.GenericInputStreamSource
All Implemented Interfaces:
InputStreamSource

public class GenericInputStreamSource
extends Object
implements InputStreamSource

Generic InputStreamSource, which keep inside name and input stream.

Author:
Ruslan Shevchenko

Constructor Summary
GenericInputStreamSource(InputStream inputStream, String resourceName)
          Creates a new instance of GenericInputStreamSource
 
Method Summary
 InputStream getInputStream()
          get input stream for target resource.
 String getResourceName()
          get name of resource (such as absolute file name, or so on)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericInputStreamSource

public GenericInputStreamSource(InputStream inputStream,
                                String resourceName)
Creates a new instance of GenericInputStreamSource

Method Detail

getInputStream

public InputStream getInputStream()
Description copied from interface: InputStreamSource
get input stream for target resource.

Specified by:
getInputStream in interface InputStreamSource

getResourceName

public String getResourceName()
Description copied from interface: InputStreamSource
get name of resource (such as absolute file name, or so on)

Specified by:
getResourceName in interface InputStreamSource