FileDocCategorySizeDatePackage
IteratorStringifier.javaAPI DocGlassfish v2 API3344Fri May 04 22:31:06 BST 2007com.sun.appserv.management.util.stringifier

IteratorStringifier

public final class IteratorStringifier extends IteratorStringifierBase
Stringifies an Iterator, using an optional element Stringifier

Fields Summary
public static final IteratorStringifier
DEFAULT
Constructors Summary
public IteratorStringifier()

		super();
	
public IteratorStringifier(String delim)

		super( delim );
	
public IteratorStringifier(Stringifier elementStringifier)

		super( elementStringifier );
	
public IteratorStringifier(String delim, Stringifier elementStringifier)

		super( delim, elementStringifier );
	
Methods Summary
public static java.lang.Stringstringify(java.util.Iterator iter, java.lang.String delim)

		final IteratorStringifier	stringifier	= new IteratorStringifier( delim );
		
		return( stringifier.stringify( iter, delim, SmartStringifier.DEFAULT ) );
	
public voidstringifyElement(java.lang.Object elem, java.lang.String delim, java.lang.StringBuffer buf)

		if ( elem == null )
		{
			buf.append( "null" );
		}
		else
		{
			buf.append( mElementStringifier.stringify( elem ) );
		}