1 23 24 29 30 package com.sun.cli.util.stringifier; 31 32 import java.util.Iterator ; 33 34 35 38 39 public final class IteratorStringifier extends IteratorStringifierBase 40 { 41 public 42 IteratorStringifier( ) 43 { 44 super(); 45 } 46 47 public 48 IteratorStringifier( String delim ) 49 { 50 super( delim ); 51 } 52 53 public 54 IteratorStringifier( Stringifier elementStringifier ) 55 { 56 super( elementStringifier ); 57 } 58 59 public 60 IteratorStringifier( String delim, Stringifier elementStringifier ) 61 { 62 super( delim, elementStringifier ); 63 } 64 65 66 public void 67 stringifyElement( 68 Object elem, 69 String delim, 70 StringBuffer buf) 71 { 72 assert( elem != null ); 73 74 buf.append( mElementStringifier.stringify( elem ) ); 75 buf.append( delim ); 76 } 77 78 79 public final static IteratorStringifier DEFAULT = new IteratorStringifier( "," ); 80 } 81 82 | Popular Tags |