gov.sandia.cognition.text
Class AbstractTextual

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.text.AbstractTextual
All Implemented Interfaces:
Textual, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
DefaultTextual

public abstract class AbstractTextual
extends AbstractCloneableSerializable
implements Textual

A default implementation of the Textual interface. It implements the readText() and toString() methods both by calling getText(). Thus, extending classes only need to implement the getText method to fulfill the Textual interface.

Since:
3.1
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
AbstractTextual()
          Creates a new AbstractTextual.
 
Method Summary
 Reader readText()
          Returns a new text reader for the text in this object.
 String toString()
           
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.text.Textual
getText
 

Constructor Detail

AbstractTextual

public AbstractTextual()
Creates a new AbstractTextual.

Method Detail

readText

public Reader readText()
Description copied from interface: Textual
Returns a new text reader for the text in this object.

Specified by:
readText in interface Textual
Returns:
A new reader to read the text.

toString

public String toString()
Overrides:
toString in class Object