Пример #1
0
 /** @exclude */
 public void read(NetworkDataRepresentation ndr) {
   //		if (opnum == 10) FOR TESTING ONLY
   //		{
   //			byte[] buffer = new byte[360];
   //			FileInputStream inputStream;
   //			try {
   //				inputStream = new FileInputStream("c:/temp/ONEEVENTSTRUCT");
   //				inputStream.read(buffer,0,360);
   //			} catch (Exception e) {
   //				// TODO Auto-generated catch block
   //				e.printStackTrace();
   //			}
   //
   //			NdrBuffer ndrBuffer = new NdrBuffer(buffer,0);
   //			ndr.setBuffer(ndrBuffer);
   //			NetworkDataRepresentation ndr2 = new NetworkDataRepresentation();
   //			ndr2.setBuffer(ndrBuffer);
   //			read2(ndr2);
   //		}
   // interpret based on the out params flags
   if (!readOnlyHRESULT) {
     if (splCOMVersion) {
       // during handshake and no other time. Kept for OxidResolver methods.
       serverAlive2 = new JIComVersion(ndr.readUnsignedShort(), ndr.readUnsignedShort());
       new JIPointer(new JIPointer(JIDualStringArray.class))
           .decode(ndr, new ArrayList(), JIFlags.FLAG_NULL, new HashMap());
       ndr.readUnsignedLong();
     } else {
       JIOrpcThat orpcThat = JIOrpcThat.decode(ndr);
       readPacket(ndr, false);
     }
   }
   readResult(ndr);
 }
Пример #2
0
  private void readResult(NetworkDataRepresentation ndr) {
    // last has to be the result.
    hresult = ndr.readUnsignedLong();

    if (hresult != 0) {
      // something exception occured at server, set up results
      resultsOfException = outparams;
      outparams = null;
      throw new JIRuntimeException(hresult);
    }
  }
Пример #3
0
 public void read(NetworkDataRepresentation ndr) {
   System.out.println("Got " + ndr.readUnsignedLong());
 }