org.gcube.portlets.user.homelibrary.util
Class IndentedVisitor

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.util.IndentedVisitor
Direct Known Subclasses:
HomeLibraryVisitor, ScopeHomesComparator, WorkspaceTreeVisitor, ZipModelVisitor

public class IndentedVisitor
extends Object

Author:
Federico De Faveri defaveri@isti.cnr.it

Field Summary
protected static String DEFAULT_INDENTATION_STRING
          String used for indentation.
protected  String indentationChar
           
protected  String indentationLevel
           
protected  org.apache.log4j.Logger logger
           
protected  PrintStream os
           
protected  SimpleDateFormat sdf
          Date to string conversion format.
 
Constructor Summary
IndentedVisitor()
          Create a default visitor with output to console.
IndentedVisitor(org.apache.log4j.Logger logger)
           
IndentedVisitor(String indentationLevel, String indentationChar, PrintStream os, org.apache.log4j.Logger logger)
           
 
Method Summary
protected  void indent()
           
protected  void outdent()
           
protected  void println()
           
protected  void println(String s)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INDENTATION_STRING

protected static final String DEFAULT_INDENTATION_STRING
String used for indentation.

See Also:
Constant Field Values

sdf

protected SimpleDateFormat sdf
Date to string conversion format.


indentationLevel

protected String indentationLevel

indentationChar

protected String indentationChar

os

protected PrintStream os

logger

protected org.apache.log4j.Logger logger
Constructor Detail

IndentedVisitor

public IndentedVisitor()
Create a default visitor with output to console.


IndentedVisitor

public IndentedVisitor(org.apache.log4j.Logger logger)
Parameters:
logger - the visitor logger.

IndentedVisitor

public IndentedVisitor(String indentationLevel,
                       String indentationChar,
                       PrintStream os,
                       org.apache.log4j.Logger logger)
Parameters:
indentationLevel - the indentation level.
indentationChar - the indentation char.
os - the output stream.
logger - the visitor logger.
Method Detail

reset

public void reset()

println

protected void println()

println

protected void println(String s)

indent

protected void indent()

outdent

protected void outdent()


Copyright © 2013. All Rights Reserved.