1 2 24 25 30 31 package com.sun.appserv.management.util.stringifier; 32 33 import java.security.Provider ; 34 35 38 39 public final class ProviderStringifier implements Stringifier 40 { 41 public final static ProviderStringifier DEFAULT = new ProviderStringifier(); 42 43 public 44 ProviderStringifier() 45 { 46 } 47 48 49 public String 50 stringify( Object object ) 51 { 52 final Provider provider = (Provider )object; 53 54 final StringBuffer buf = new StringBuffer (); 55 56 buf.append( provider.getInfo() ); 57 58 java.util.Iterator iter = provider.entrySet().iterator(); 59 while ( iter.hasNext() ) 60 { 61 buf.append( iter.next().toString() + "\n" ); 62 } 63 64 return( buf.toString() ); 65 } 66 } 67 68 | Popular Tags |