Coinjema
1.7

org.coinjema.context.source
Class FileResource

java.lang.Object
  extended by org.coinjema.context.source.FileResource
All Implemented Interfaces:
Resource

public class FileResource
extends Object
implements Resource


Constructor Summary
FileResource(File f, String resourceName)
           
FileResource(File f, String resourceName, String format)
           
 
Method Summary
 String getFormat()
           
 InputStream getInputStream()
           
 Collection<MetaType> getMetaTypes()
           
 String getName()
           
 Reader getReader()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileResource

public FileResource(File f,
                    String resourceName)

FileResource

public FileResource(File f,
                    String resourceName,
                    String format)
Method Detail

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface Resource

getName

public String getName()
Specified by:
getName in interface Resource

getReader

public Reader getReader()
Specified by:
getReader in interface Resource

getMetaTypes

public Collection<MetaType> getMetaTypes()
Specified by:
getMetaTypes in interface Resource

getFormat

public String getFormat()
Specified by:
getFormat in interface Resource

toString

public String toString()
Overrides:
toString in class Object

Coinjema
1.7

Public Domain Software.