SmartFrog 3.10.000

org.smartfrog.sfcore.common
Interface PrettyPrinting

All Known Subinterfaces:
ComponentDescription, Context, CSFComponentDescription, Phases, SFComponentDescription
All Known Implementing Classes:
ComponentDescriptionImpl, ContextImpl, CSFComponentDescriptionImpl, SFComponentDescriptionImpl

public interface PrettyPrinting

Defines an interface for printing indented data, for example imlpemented by Context and ComopnentDescription


Method Summary
 void writeOn(java.io.Writer ps)
          Writes this component description on a writer.
 void writeOn(java.io.Writer ps, int Indent)
          Writes this component description on a writer.
 

Method Detail

writeOn

void writeOn(java.io.Writer ps)
             throws java.io.IOException
Writes this component description on a writer. Used by toString. Should be used instead of toString to write large descriptions to file, since memory can become a problem given the LONG strings created

Parameters:
ps - writer to write on
Throws:
java.io.IOException - failure while writing

writeOn

void writeOn(java.io.Writer ps,
             int Indent)
             throws java.io.IOException
Writes this component description on a writer. Used by toString. Should be used instead of toString to write large descriptions to file, since memory can become a problem given the LONG strings created

Parameters:
ps - writer to write on
Indent - the indent to use for printing offset
Throws:
java.io.IOException - failure while writing

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP