All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.christofreichardt.diagnosis.io.IndentablePrintStream Maven / Gradle / Ivy

Go to download

A trace tool which produces clearly arranged logs by indenting the trace messages depending on the depth of the call stack.

There is a newer version: 1.10.0
Show newest version
/*
 * Created on 16.07.2003
 * Revised on 17.07.2007
 *
 */
package de.christofreichardt.diagnosis.io;

import java.io.PrintStream;
import java.io.OutputStream;

/**
 * The base class of all indentable print streams.
 *
 * @author Christof Reichardt
 */
public abstract class IndentablePrintStream extends PrintStream implements Indentable {

  /**
   * This constructor passes the given OutputStream to the underlying PrintStream implementation.
   *
   * @param out the desired OutputStream
   */
  public IndentablePrintStream(OutputStream out) {
    super(out);
  }

  /*
   * Implementation of Indentable interface
   */
  @Override
  abstract public IndentablePrintStream printIndent(String s);

  @Override
  abstract public IndentablePrintStream printIndentln(String s);

  @Override
  abstract public IndentablePrintStream printIndentString();

  @Override
  abstract public Indentable printfIndentln(String format, Object... args);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy