コード例 #1
0
  /** Returns the maximum stream format version supported by our ValueHandler. */
  public static byte getMaxStreamFormatVersion() {
    ValueHandler vh = Util.createValueHandler();

    if (!(vh instanceof javax.rmi.CORBA.ValueHandlerMultiFormat))
      return ORBConstants.STREAM_FORMAT_VERSION_1;
    else return ((ValueHandlerMultiFormat) vh).getMaximumStreamFormatVersion();
  }
コード例 #2
0
 /** Return default ValueHandler */
 public static ValueHandler createValueHandler() {
   return Util.createValueHandler();
 }