FileDocCategorySizeDatePackage
InvokeResultIteratorStringifier.javaAPI DocGlassfish v2 API2949Fri May 04 22:24:52 BST 2007com.sun.cli.jmx.support

InvokeResultIteratorStringifier

public class InvokeResultIteratorStringifier extends IteratorStringifierBase

Fields Summary
Constructors Summary
public InvokeResultIteratorStringifier(String delim)

		super(  delim, InvokeResultStringifier.DEFAULT );
	
Methods Summary
public voidstringifyElement(java.lang.Object elem, java.lang.String delim, java.lang.StringBuffer buf)

		final InvokeResult	r	= (InvokeResult)elem;
		
		final InvokeResult.ResultType	result	= r.getResultType();
		
		// don't output "not found" results; only those that
		// were invoked and succeeded or failed
		if ( result == InvokeResult.SUCCESS ||
			result == InvokeResult.FAILURE )
		{
			buf.append( mElementStringifier.stringify( elem ) );
			buf.append( delim );
		}