org.edg.data.reptor.info
Class InfoPrinter

java.lang.Object
  extended byorg.edg.data.reptor.info.InfoPrinter
Direct Known Subclasses:
StubInfoPrinter, UserStreamInfoPrinter

public abstract class InfoPrinter
extends java.lang.Object

A InfoPrinter handles printing information from the information system to some output stream in a variety of formats.

Version:
$ Id:$
Author:
James Casey

Field Summary
protected  int m_alignment
          the position of the alignment character
protected  java.lang.String m_comment
           
protected  java.lang.String m_sep
           
protected  java.lang.String m_spaces
           
 
Constructor Summary
InfoPrinter(java.io.PrintWriter out, int lineLength, int alignment, java.lang.String comment, java.lang.String sep, java.lang.String eol)
          Create a new InfoPrinter.
 
Method Summary
 void comment()
           
 void comment(java.lang.String line)
           
 void comment(java.lang.String key, java.lang.String value)
           
 void entry(java.lang.String key, java.util.Iterator values)
           
 void entry(java.lang.String key, java.lang.String value)
           
abstract  void entry(java.lang.String key, java.lang.String desc, java.util.Iterator values)
           
abstract  void entry(java.lang.String key, java.lang.String desc, java.lang.String value)
           
 void newline()
           
abstract  void warning(InfoServiceException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_alignment

protected final int m_alignment
the position of the alignment character


m_comment

protected final java.lang.String m_comment

m_sep

protected final java.lang.String m_sep

m_spaces

protected final java.lang.String m_spaces
Constructor Detail

InfoPrinter

public InfoPrinter(java.io.PrintWriter out,
                   int lineLength,
                   int alignment,
                   java.lang.String comment,
                   java.lang.String sep,
                   java.lang.String eol)
Create a new InfoPrinter. All values should be set to "" if they have no value

Parameters:
out - The underlying PrintWriter
lineLength -
alignment - the position of the separator
comment - the comment line prefix
sep - the seperator between key and value
eol - the end-of-line continuation character if a value is split
Method Detail

comment

public void comment()

comment

public void comment(java.lang.String key,
                    java.lang.String value)

comment

public void comment(java.lang.String line)

entry

public void entry(java.lang.String key,
                  java.lang.String value)

entry

public void entry(java.lang.String key,
                  java.util.Iterator values)

newline

public void newline()

warning

public abstract void warning(InfoServiceException e)
                      throws InfoServiceException
Throws:
InfoServiceException

entry

public abstract void entry(java.lang.String key,
                           java.lang.String desc,
                           java.lang.String value)

entry

public abstract void entry(java.lang.String key,
                           java.lang.String desc,
                           java.util.Iterator values)