private static void showUsage ( final String message ) { if ( message != null ) { System . out . println ( message ) ; } // end if System . out . println ( "Usage :\n\tjava -cp yahp-sample.jar:yahp.jar org.allcolor.yahp.sample.CSimpleConversion" + " --url [http|file]://myuri --out /path/to.pdf [font options] [renderer options] [security options] [--help|-h]" ) ; System . out . println ( "\t[font options]:" ) ; System . out . println ( "\t\t[--fontpath directory where TTF font files are located]" ) ; System . out . println ( "\t[renderer options]:" ) ; System . out . println ( "\t(Default renderer use Flying Saucer XHTML renderer. no option.)" ) ; System . out . println ( "\t[security options]:" ) ; System . out . println ( "\t\t[--password password]" ) ; System . out . println ( "\t\t[--ks keystore file path]" ) ; System . out . println ( "\t\t[--kspassword keystore file password]" ) ; System . out . println ( "\t\t[--keypassword private key password]" ) ; System . out . println ( "\t\t[--cryptreason reason]" ) ; System . out . println ( "\t\t[--cryptlocation location]" ) ; if ( message != null ) { System . exit ( - 2 ) ; } else { System . exit ( 0 ) ; } }
Show the usage of the tool