org.geworkbench.bison.parsers.resources
Class AbstractResource

java.lang.Object
  extended by org.geworkbench.bison.parsers.resources.AbstractResource
All Implemented Interfaces:
Resource
Direct Known Subclasses:
AffyResource, EdgeListResource, ExpressionResource, GenepixResource, SequenceResource

public abstract class AbstractResource
extends java.lang.Object
implements Resource

Baseline implementation of Resource.


Field Summary
protected  java.io.Reader reader
           
protected  java.io.Writer writer
           
 
Constructor Summary
AbstractResource()
           
 
Method Summary
 java.io.Reader getReader()
          Return the Reader modelled by this resource.
 java.io.Writer getWriter()
          Return the Writer modelled by this resource.
 void setReader(java.io.Reader is)
          Set the Reader that the resource uses for input.
 void setWriter(java.io.Writer os)
          Set the Writer that hte resource uses for output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected java.io.Reader reader

writer

protected java.io.Writer writer
Constructor Detail

AbstractResource

public AbstractResource()
Method Detail

getReader

public java.io.Reader getReader()
Description copied from interface: Resource
Return the Reader modelled by this resource.

Specified by:
getReader in interface Resource
Returns:

getWriter

public java.io.Writer getWriter()
Description copied from interface: Resource
Return the Writer modelled by this resource.

Specified by:
getWriter in interface Resource
Returns:

setReader

public void setReader(java.io.Reader is)
Description copied from interface: Resource
Set the Reader that the resource uses for input.

Specified by:
setReader in interface Resource

setWriter

public void setWriter(java.io.Writer os)
Description copied from interface: Resource
Set the Writer that hte resource uses for output.

Specified by:
setWriter in interface Resource