站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

Printable (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util.stream
Interface Printable

All Known Implementing Classes:
StackTrace, StackTrace.Entry

public interface Printable

A simple interface to allow an object to print itself to a PrintWriter or PrintStream.

Version:
$Revision: 1.1 $
Author:
Jason Dillon

Method Summary
 void print(PrintStream stream)
          Print to a PrintStream.
 void print(PrintStream stream, String prefix)
          Print to a PrintStream.
 void print(PrintWriter writer)
          Print to a PrintWriter.
 void print(PrintWriter writer, String prefix)
          Print to a PrintWriter.
 

Method Detail

print

public void print(PrintWriter writer)
Print to a PrintWriter.

Parameters:
writer - PrintWriter to print to.

print

public void print(PrintWriter writer,
                  String prefix)
Print to a PrintWriter.

Parameters:
writer - PrintWriter to print to.
prefix - Prefix to append to each line in the stream.

print

public void print(PrintStream stream)
Print to a PrintStream.

Parameters:
stream - PrintStream to print to.

print

public void print(PrintStream stream,
                  String prefix)
Print to a PrintStream.

Parameters:
stream - PrintStream to print to.
prefix - Prefix to append to each line in the stream.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.