public final String createEntityDeclaration ( ) throws UnsupportedEncodingException { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( "<!DOCTYPE padawan [\n" ) ; for ( int i = 0 ; i < entity . length ; i ++ ) { buffer . append ( "<!ENTITY " + entity [ i ] [ 1 ] + " '" + entity [ i ] [ 0 ] + "' >\n" ) ; } buffer . append ( "]>\n" ) ; return buffer . toString ( ) ; }
Create the padawan doctype