Class AbstractDataWriter

java.lang.Object
de.calamanari.pk.abstractfactory.AbstractDataWriter
Direct Known Subclasses:
PlainFileDataWriter, SecureFileDataWriter

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

    Constructors
    Constructor Description
    AbstractDataWriter()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDestinationInfo()
    Returns a textual description about the destination.
    abstract long writeString​(java.lang.String item)
    writes the given string.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getDestinationInfo

      public java.lang.String getDestinationInfo()
      Returns a textual description about the destination.
      Returns:
      destination info, may be null if unavailable
    • writeString

      public abstract long writeString​(java.lang.String item)
      writes the given string.
      Parameters:
      item - string to write
      Returns:
      size (bytes written), -1 if unsupported