/** * Returns an Interface Pointer representation from raw bytes. * * @exclude * @param session * @param rawBytes * @return * @throws JIException */ public static IJIComObject instantiateComObject ( final JISession session, final byte[] rawBytes, final String ipAddress ) throws JIException { final NetworkDataRepresentation ndr = new NetworkDataRepresentation (); final NdrBuffer ndrBuffer = new NdrBuffer ( rawBytes, 0 ); ndr.setBuffer ( ndrBuffer ); ndrBuffer.length = rawBytes.length; //this is a brand new session. if ( session.getStub () == null ) { final JIComServer comServer = new JIComServer ( session, JIInterfacePointer.decode ( ndr, new ArrayList (), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap () ), ipAddress ); return comServer.getInstance (); } else { final IJIComObject retval = instantiateComObject ( session, JIInterfacePointer.decode ( ndr, new ArrayList (), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap () ) ); //increasing the reference count. retval.addRef (); return retval; } }
/** Returns an Interface Pointer representation from raw bytes. * * @exclude * @param session * @param rawBytes * @return * @throws JIException */ public static IJIComObject instantiateComObject(JISession session,byte[] rawBytes, String ipAddress) throws JIException { NetworkDataRepresentation ndr = new NetworkDataRepresentation(); NdrBuffer ndrBuffer = new NdrBuffer(rawBytes,0); ndr.setBuffer(ndrBuffer); ndrBuffer.length = rawBytes.length; //this is a brand new session. if (session.getStub() == null) { JIComServer comServer = new JIComServer(session,JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap()),ipAddress); return comServer.getInstance(); } else { IJIComObject retval = instantiateComObject(session, JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap())); //increasing the reference count. retval.addRef(); return retval; } }
/** Returns an Interface Pointer representation from raw bytes. * * @exclude * @param session * @param rawBytes * @return * @throws JIException */ public static IJIComObject instantiateComObject(JISession session,byte[] rawBytes, String ipAddress) throws JIException { NetworkDataRepresentation ndr = new NetworkDataRepresentation(); NdrBuffer ndrBuffer = new NdrBuffer(rawBytes,0); ndr.setBuffer(ndrBuffer); ndrBuffer.length = rawBytes.length; //this is a brand new session. if (session.getStub() == null) { JIComServer comServer = new JIComServer(session,JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap()),ipAddress); return comServer.getInstance(); } else { IJIComObject retval = instantiateComObject(session, JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap())); //increasing the reference count. retval.addRef(); return retval; } }
JIInterfacePointer retVal = JIInterfacePointer.decode(ndr,defferedPointers,FLAG,additionalData); return retVal;
JIInterfacePointer retVal = JIInterfacePointer.decode(ndr,defferedPointers,FLAG,additionalData); return retVal;
final JIInterfacePointer retVal = JIInterfacePointer.decode ( ndr, defferedPointers, FLAG, additionalData ); return retVal;
public void read(NetworkDataRepresentation ndr) { JIOrpcThat.decode(ndr); ndr.readUnsignedLong(); //size will be one int hresult1 = ndr.readUnsignedLong(); if (hresult1 != 0) { //something happened. throw new JIRuntimeException(hresult1); } //array length ndr.readUnsignedLong(); //and now the JIInterfacePointer itself. iidPtr = JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_NULL, new HashMap()); //final hresult hresult1 = ndr.readUnsignedLong(); if (hresult1 != 0) { //something happened. throw new JIRuntimeException(hresult1); } }
public void read(NetworkDataRepresentation ndr) { JIOrpcThat.decode(ndr); ndr.readUnsignedLong(); //size will be one int hresult1 = ndr.readUnsignedLong(); if (hresult1 != 0) { //something happened. throw new JIRuntimeException(hresult1); } //array length ndr.readUnsignedLong(); //and now the JIInterfacePointer itself. iidPtr = JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_NULL, new HashMap()); //final hresult hresult1 = ndr.readUnsignedLong(); if (hresult1 != 0) { //something happened. throw new JIRuntimeException(hresult1); } }
@Override public void read ( final NetworkDataRepresentation ndr ) { JIOrpcThat.decode ( ndr ); ndr.readUnsignedLong (); //size will be one int hresult1 = ndr.readUnsignedLong (); if ( hresult1 != 0 ) { //something happened. throw new JIRuntimeException ( hresult1 ); } //array length ndr.readUnsignedLong (); //and now the JIInterfacePointer itself. this.iidPtr = JIInterfacePointer.decode ( ndr, new ArrayList (), JIFlags.FLAG_NULL, new HashMap () ); //final hresult hresult1 = ndr.readUnsignedLong (); if ( hresult1 != 0 ) { //something happened. throw new JIRuntimeException ( hresult1 ); } }