903 |
903 |
904 } |
904 } |
905 |
905 |
906 return contents.toString(); |
906 return contents.toString(); |
907 } |
907 } |
908 |
|
909 public static void main(String[] args) { |
|
910 |
|
911 Class remoteInterface = java.rmi.Remote.class; |
|
912 |
|
913 if( args.length > 0 ) { |
|
914 String className = args[0]; |
|
915 try { |
|
916 remoteInterface = Class.forName(className); |
|
917 } catch(Exception e) { |
|
918 e.printStackTrace(); |
|
919 System.exit(-1); |
|
920 } |
|
921 } |
|
922 |
|
923 System.out.println("Building name translation for " + remoteInterface); |
|
924 try { |
|
925 IDLNameTranslator nameTranslator = |
|
926 IDLNameTranslatorImpl.get(remoteInterface); |
|
927 System.out.println(nameTranslator); |
|
928 } catch(IllegalStateException ise) { |
|
929 ise.printStackTrace(); |
|
930 } |
|
931 } |
|
932 } |
908 } |