/** * New instnace. * * @return the IDL proxy object */ public IDLProxyObject newInstnace() { try { Object object = cls.newInstance(); return new IDLProxyObject(codec, object, cls); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }
/** * Decode. * * @param bb the bb * @return the IDL proxy object * @throws IOException Signals that an I/O exception has occurred. */ public IDLProxyObject decode(byte[] bb) throws IOException { if (bb == null) { throw new IllegalArgumentException("param 'bb' is null"); } Object object = codec.decode(bb); return new IDLProxyObject(codec, object, cls); }
try { Codec codec = ProtobufProxy.create(cls, debug, path); IDLProxyObject idlProxyObject = new IDLProxyObject(codec, newInstance, cls); String name = cls.getSimpleName(); if (name.indexOf(DEFAULT_SUFFIX_CLASSNAME) != -1) {