Class AbstractDataReader

java.lang.Object
de.calamanari.pk.abstractfactory.AbstractDataReader
Direct Known Subclasses:
PlainFileDataReader, SecureFileDataReader

public abstract class AbstractDataReader
extends java.lang.Object
Abstract data reader is one base class of the ABSTRACT PRODUCTs each concrete ABSTRACT FACTORY can create.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    AbstractDataReader()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getSourceInfo()
    Returns a textual description about the source.
    abstract java.lang.String readString()
    Reads the string from the source.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getSourceInfo

      public java.lang.String getSourceInfo()
      Returns a textual description about the source.
      Returns:
      source info, may be null if unavailable
    • readString

      public abstract java.lang.String readString()
      Reads the string from the source.
      Returns:
      string from source