Examples of readExternal()


Examples of java.rmi.server.RemoteRef.readExternal()

  try {
      Class<? extends RemoteRef> refClass =
    Class.forName(RemoteRef.packagePrefix + "." + in.readUTF())
    .asSubclass(RemoteRef.class);
      RemoteRef ref = refClass.newInstance();
      ref.readExternal(in);
      activator = (Activator)
    Proxy.newProxyInstance(null,
               new Class<?>[] { Activator.class },
               new RemoteObjectInvocationHandler(ref));
View Full Code Here

Examples of javaewah.EWAHCompressedBitmap.readExternal()

      BitmapAgg myagg = (BitmapAgg) agg;
      ArrayList<LongWritable> partialResult = (ArrayList<LongWritable>) internalMergeOI.getList(partial);
      BitmapObjectInput bitmapObjIn = new BitmapObjectInput(partialResult);
      EWAHCompressedBitmap partialBitmap = new EWAHCompressedBitmap();
      try {
        partialBitmap.readExternal(bitmapObjIn);
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
      myagg.bitmap = myagg.bitmap.or(partialBitmap);
    }
View Full Code Here

Examples of jdbm.recman.BlockIo.readExternal()

    return ret;  }


  private static BlockIo deserializeBlockIo(DataInputStream is) throws IOException, ClassNotFoundException {
    BlockIo b = new BlockIo();
    b.readExternal(is);
    return b;
  }
 
  private static Object[] deserializeArrayObject(DataInputStream is) throws IOException, ClassNotFoundException {
    int size =LongPacker.unpackInt(is);
View Full Code Here

Examples of joshua.corpus.vocab.Vocabulary.readExternal()

    int numTargetWords, numTargetSentences;
    String binaryCommonVocabFileName = this.commonVocabFileName;
    if (binaryCorpus) {
      if (logger.isLoggable(Level.INFO)) logger.info("Initializing common vocabulary from binary file " + binaryCommonVocabFileName);
      ObjectInput in = BinaryIn.vocabulary(binaryCommonVocabFileName);
      commonVocab.readExternal(in);
     
      numSourceWords = Integer.MIN_VALUE;
      numSourceSentences = Integer.MIN_VALUE;
     
      numTargetWords = Integer.MIN_VALUE;
View Full Code Here

Examples of org.apache.activemq.kaha.impl.async.Location.readExternal()

        this.wireFormat = wireFormat;
    }

    public AMQTx readPayload(DataInput dataIn) throws IOException {
        Location location = new Location();
        location.readExternal(dataIn);
        AMQTx result = new AMQTx(location);
        int size = dataIn.readInt();
        for (int i = 0; i < size; i++) {
            AMQTxOperation op = new AMQTxOperation();
            op.readExternal(wireFormat, dataIn);
View Full Code Here

Examples of org.apache.activemq.store.amq.AMQTxOperation.readExternal()

        location.readExternal(dataIn);
        AMQTx result = new AMQTx(location);
        int size = dataIn.readInt();
        for (int i = 0; i < size; i++) {
            AMQTxOperation op = new AMQTxOperation();
            op.readExternal(wireFormat, dataIn);
            result.getOperations().add(op);
        }
        return result;
    }
View Full Code Here

Examples of org.apache.axis2.context.MessageContext.readExternal()

       /**/
      ResultSet rs = stmt.executeQuery("select * from wsrm_msgctx where ctx_key='" +
          key + "'");
      rs.next();
      MessageContext msgCtx = new MessageContext();
      msgCtx.readExternal(new ObjectInputStream(rs.getBinaryStream("ctx")));
      msgCtx.activate(configContext);
      msgCtx.setProperty(Sandesha2Constants.POST_FAILURE_MESSAGE, Sandesha2Constants.VALUE_TRUE);
      rs.close();
      stmt.close();
      log.debug("RetrieveMessageContext get from DB");
View Full Code Here

Examples of org.apache.derby.iapi.services.io.Storable.readExternal()

            arrayPosition++;
            continue;
          }

          inUserCode = true;
          sColumn.readExternal(logicalDataIn);
          inUserCode = false;
          arrayPosition++;
          continue;
        }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor.readExternal()

                                    ((StreamStorable)sColumn).setStream(newIn);
                                }
                                else
                                {
                                    inUserCode = newIn;
                                    sColumn.readExternal(newIn);
                                    inUserCode = null;
                                }
                            }
                        }
                    }
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.BinaryValue.readExternal()

        byte[] data = baos.toByteArray();
        in = new ObjectInputStream( new ByteArrayInputStream( data ) );

        BinaryValue bvDeser = new BinaryValue( ( AttributeType ) null );
        bvDeser.readExternal( in );

        assertEquals( bv1, bvDeser );
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.