FileDocCategorySizeDatePackage
IndentWriter.javaAPI DocAzureus 3.0.3.41659Wed Nov 15 17:23:46 GMT 2006org.gudy.azureus2.core3.util

IndentWriter

public class IndentWriter extends Object

Fields Summary
private static final String
INDENT_STRING
private PrintWriter
pw
private String
indent
private boolean
force
Constructors Summary
public IndentWriter(PrintWriter _pw)

	
	
	
			 
	
		pw	= _pw;
	
Methods Summary
public voidclose()

		pw.close();
	
public voidexdent()

		if ( indent.length() > 0 ){
			
			indent = indent.substring(INDENT_STRING.length());
		}
	
public voidindent()

		indent += INDENT_STRING;
	
public voidprintln(java.lang.String str)

		pw.println( indent + str );
		
		if ( force ){
			
			pw.flush();
		}
	
public voidsetForce(boolean b)

		force	= b;