public void readExternal(ObjectInput objectInput) throws IOException {
   uuid = objectInput.readUTF();
   pageId = objectInput.readLong();
   resourcePrimKey = objectInput.readLong();
   groupId = objectInput.readLong();
   companyId = objectInput.readLong();
   userId = objectInput.readLong();
   userName = objectInput.readUTF();
   createDate = objectInput.readLong();
   modifiedDate = objectInput.readLong();
   nodeId = objectInput.readLong();
   title = objectInput.readUTF();
   version = objectInput.readDouble();
   minorEdit = objectInput.readBoolean();
   content = objectInput.readUTF();
   summary = objectInput.readUTF();
   format = objectInput.readUTF();
   head = objectInput.readBoolean();
   parentTitle = objectInput.readUTF();
   redirectTitle = objectInput.readUTF();
   status = objectInput.readInt();
   statusByUserId = objectInput.readLong();
   statusByUserName = objectInput.readUTF();
   statusDate = objectInput.readLong();
 }
Esempio n. 2
0
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   factHandle = (InternalFactHandle) in.readObject();
   removeLogical = in.readBoolean();
   updateEqualsMap = in.readBoolean();
   ruleOrigin = (Rule) in.readObject();
   leftTuple = (LeftTuple) in.readObject();
 }
 @Override
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   this.propertyName = (String) in.readObject();
   this.persistList = (List<Type>) in.readObject();
   this.clear = in.readBoolean();
   this.exclusive = in.readBoolean();
 }
Esempio n. 4
0
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   queryElement = (QueryElement) in.readObject();
   tupleSource = (LeftTupleSource) in.readObject();
   tupleMemoryEnabled = in.readBoolean();
   openQuery = in.readBoolean();
 }
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   initRange = in.readLong();
   finalRange = in.readLong();
   paramText = (String) in.readObject();
   unwrapLeft = in.readBoolean();
   unwrapRight = in.readBoolean();
 }
Esempio n. 6
0
 /**
  * Used with serialization. Not to be called manually.
  *
  * @param in ObjectInput
  * @throws IOException
  * @throws ClassNotFoundException
  */
 @Override
 public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
   _myMatrix.set((CCMatrix3x3) in.readObject());
   _myScale.set((CCVector3) in.readObject());
   _myTranslation.set((CCVector3) in.readObject());
   _myIsIdentity = in.readBoolean();
   _myIsRotationMatrix = in.readBoolean();
   _myIsUniformScale = in.readBoolean();
 }
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   index = in.readInt();
   type = in.readByte();
   ovalue = in.readObject();
   lvalue = in.readLong();
   bvalue = in.readBoolean();
   dvalue = in.readDouble();
   isNull = in.readBoolean();
   hashCode = in.readInt();
 }
 @Override
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   if (in.readBoolean()) {
     descColumns = new boolean[in.readInt()];
     for (int i = 0; i < descColumns.length; i++) descColumns[i] = in.readBoolean();
   }
   if (in.readBoolean()) {
     nullsOrderedLow = new boolean[in.readInt()];
     for (int i = 0; i < nullsOrderedLow.length; i++) nullsOrderedLow[i] = in.readBoolean();
   }
 }
Esempio n. 9
0
 public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException {
   kBase = (InternalKnowledgeBase) stream.readObject();
   cls = (Class<?>) stream.readObject();
   objectTypeNodes = (ObjectTypeNode[]) stream.readObject();
   concreteObjectTypeNode = (ObjectTypeNode) stream.readObject();
   entryPoint = (EntryPointId) stream.readObject();
   tmsEnabled = stream.readBoolean();
   traitTmsEnabled = stream.readBoolean();
   supportsPropertyListeners = stream.readBoolean();
   isEvent = stream.readBoolean();
   isTrait = stream.readBoolean();
 }
Esempio n. 10
0
    public void readExternal(ObjectInput objectInput) throws IOException {
      if (objectInput.readBoolean()) {
        setNationalNumberPattern(objectInput.readUTF());
      }

      if (objectInput.readBoolean()) {
        setPossibleNumberPattern(objectInput.readUTF());
      }

      if (objectInput.readBoolean()) {
        setExampleNumber(objectInput.readUTF());
      }
    }
 @Override
 public void readExternal(ObjectInput objectInput) throws IOException {
   itemPriceId = objectInput.readLong();
   itemId = objectInput.readLong();
   minQuantity = objectInput.readInt();
   maxQuantity = objectInput.readInt();
   price = objectInput.readDouble();
   discount = objectInput.readDouble();
   taxable = objectInput.readBoolean();
   shipping = objectInput.readDouble();
   useShippingFormula = objectInput.readBoolean();
   status = objectInput.readInt();
 }
Esempio n. 12
0
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   this.key = in.readInt();
   this.value = in.readLong();
   boolean hasNext = in.readBoolean();
   BucketEntry cur = this;
   while (hasNext) {
     int k = in.readInt();
     long v = in.readLong();
     BucketEntry n = new BucketEntry(k, v);
     cur.next = n;
     cur = n;
     hasNext = in.readBoolean();
   }
 }
 @Override
 public void readExternal(ObjectInput objectInput) throws IOException {
   uuid = objectInput.readUTF();
   sapEntryId = objectInput.readLong();
   companyId = objectInput.readLong();
   userId = objectInput.readLong();
   userName = objectInput.readUTF();
   createDate = objectInput.readLong();
   modifiedDate = objectInput.readLong();
   allowedServiceSignatures = objectInput.readUTF();
   defaultSAPEntry = objectInput.readBoolean();
   enabled = objectInput.readBoolean();
   name = objectInput.readUTF();
   title = objectInput.readUTF();
 }
  /** {@inheritDoc} */
  @Override
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);

    threadId = in.readLong();
    commit = in.readBoolean();
    invalidate = in.readBoolean();
    reply = in.readBoolean();

    futId = U.readGridUuid(in);
    commitVer = CU.readVersion(in);
    baseVer = CU.readVersion(in);

    writeEntries = U.readList(in);
  }
Esempio n. 15
0
 public void readExternal(ObjectInput objectInput) throws IOException {
   setPattern(objectInput.readUTF());
   setFormat(objectInput.readUTF());
   int leadingDigitsPatternSize = objectInput.readInt();
   for (int i = 0; i < leadingDigitsPatternSize; i++) {
     leadingDigitsPattern_.add(objectInput.readUTF());
   }
   if (objectInput.readBoolean()) {
     setNationalPrefixFormattingRule(objectInput.readUTF());
   }
   if (objectInput.readBoolean()) {
     setDomesticCarrierCodeFormattingRule(objectInput.readUTF());
   }
   setNationalPrefixOptionalWhenFormatting(objectInput.readBoolean());
 }
Esempio n. 16
0
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   unwrapRightObject = in.readBoolean();
   accumulate = (Accumulate) in.readObject();
   resultConstraints = (AlphaNodeFieldConstraint[]) in.readObject();
   resultBinder = (BetaConstraints) in.readObject();
 }
Esempio n. 17
0
 @SuppressWarnings("unchecked")
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   entryPoint = (EntryPoint) in.readObject();
   objectTypeNodes = (Map<ObjectType, ObjectTypeNode>) in.readObject();
   unlinkingEnabled = in.readBoolean();
 }
Esempio n. 18
0
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   constraints = (BetaConstraints) in.readObject();
   leftInput = (LeftTupleSource) in.readObject();
   rightInput = (ObjectSource) in.readObject();
   objectMemory = in.readBoolean();
   tupleMemoryEnabled = in.readBoolean();
   concurrentRightTupleMemory = in.readBoolean();
   lrUnlinkingEnabled = in.readBoolean();
   rightDeclaredMask = in.readLong();
   rightInferredMask = in.readLong();
   rightNegativeMask = in.readLong();
   leftListenedProperties = (List) in.readObject();
   rightListenedProperties = (List) in.readObject();
   setUnificationJoin();
   super.readExternal(in);
 }
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   tupleSource = (LeftTupleSource) in.readObject();
   tupleMemoryEnabled = in.readBoolean();
   previousTupleSinkNode = (LeftTupleSinkNode) in.readObject();
   nextTupleSinkNode = (LeftTupleSinkNode) in.readObject();
 }
 @Override
 public void readExternal(ObjectInput objectInput) throws IOException {
   uuid = objectInput.readUTF();
   fileEntryId = objectInput.readLong();
   groupId = objectInput.readLong();
   companyId = objectInput.readLong();
   userId = objectInput.readLong();
   userName = objectInput.readUTF();
   createDate = objectInput.readLong();
   modifiedDate = objectInput.readLong();
   classNameId = objectInput.readLong();
   classPK = objectInput.readLong();
   repositoryId = objectInput.readLong();
   folderId = objectInput.readLong();
   treePath = objectInput.readUTF();
   name = objectInput.readUTF();
   fileName = objectInput.readUTF();
   extension = objectInput.readUTF();
   mimeType = objectInput.readUTF();
   title = objectInput.readUTF();
   description = objectInput.readUTF();
   extraSettings = objectInput.readUTF();
   fileEntryTypeId = objectInput.readLong();
   version = objectInput.readUTF();
   size = objectInput.readLong();
   readCount = objectInput.readInt();
   smallImageId = objectInput.readLong();
   largeImageId = objectInput.readLong();
   custom1ImageId = objectInput.readLong();
   custom2ImageId = objectInput.readLong();
   manualCheckInRequired = objectInput.readBoolean();
 }
Esempio n. 21
0
  /**
   * Reads object from data input. Note we do not use externalizable interface to eliminate
   * marshaller.
   *
   * @param in Data input.
   * @throws IOException If read failed.
   */
  @Override
  public void readExternal(ObjectInput in) throws IOException {
    start = in.readLong();
    len = in.readLong();

    int size;

    if (in.readBoolean()) {
      size = in.readInt();

      nodeIds = new ArrayList<>(size);

      for (int i = 0; i < size; i++) nodeIds.add(U.readUuid(in));
    }

    size = in.readInt();

    names = new ArrayList<>(size);

    for (int i = 0; i < size; i++) names.add(in.readUTF());

    size = in.readInt();

    hosts = new ArrayList<>(size);

    for (int i = 0; i < size; i++) hosts.add(in.readUTF());
  }
  /**
   * Read the base state of the instance. This method does <strong>neither</strong> set the
   * interpolated time nor state. It is up to the derived class to reset it properly calling the
   * {@link #setInterpolatedTime} method later, once all rest of the object state has been set up
   * properly.
   *
   * @param in stream where to read the state from
   * @return interpolated time be set later by the caller
   * @exception IOException in case of read error
   */
  protected double readBaseExternal(final ObjectInput in) throws IOException {

    final int dimension = in.readInt();
    globalPreviousTime = in.readDouble();
    globalCurrentTime = in.readDouble();
    softPreviousTime = in.readDouble();
    softCurrentTime = in.readDouble();
    h = in.readDouble();
    forward = in.readBoolean();
    dirtyState = true;

    if (dimension < 0) {
      currentState = null;
    } else {
      currentState = new double[dimension];
      for (int i = 0; i < currentState.length; ++i) {
        currentState[i] = in.readDouble();
      }
    }

    // we do NOT handle the interpolated time and state here
    interpolatedTime = Double.NaN;
    interpolatedState = (dimension < 0) ? null : new double[dimension];
    interpolatedDerivatives = (dimension < 0) ? null : new double[dimension];

    finalized = true;

    return in.readDouble();
  }
Esempio n. 23
0
 @Override
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   renderResult = (RenderResult) in.readObject();
   headers = (Map<String, String>) in.readObject();
   eager = in.readBoolean();
   resultContent = in.readUTF();
 }
Esempio n. 24
0
  /**
   * The object implements the readExternal method to restore its contents by calling the methods of
   * DataInput for primitive types and readObject for objects, strings and arrays. The readExternal
   * method must read the values in the same sequence and with the same types as were written by
   * writeExternal.
   *
   * <p>
   *
   * @param in the stream to read data from in order to restore the object
   * @throws IOException if I/O errors occur
   * @throws ClassNotFoundException If the class for an object being restored cannot be found.
   */
  @Override
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {

    isLinkedException = (in.readBoolean()) ? Boolean.TRUE : Boolean.FALSE;
    errCode = in.readInt();
    message = (String) in.readObject();
  }
Esempio n. 25
0
  @Override
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    iUniqueId = in.readLong();
    iInstructionalType = (String) in.readObject();
    iName = (String) in.readObject();

    int nrSections = in.readInt();
    iSections.clear();
    for (int i = 0; i < nrSections; i++) iSections.add(new XSection(in));

    iConfigId = in.readLong();
    iParentId = in.readLong();
    if (iParentId < 0) iParentId = null;

    iCreditAbbv = (String) in.readObject();
    iCreditText = (String) in.readObject();

    iAllowOverlap = in.readBoolean();

    int nrCredits = in.readInt();
    iCreditByCourse.clear();
    for (int i = 0; i < nrCredits; i++)
      iCreditByCourse.put(
          in.readLong(), new String[] {(String) in.readObject(), (String) in.readObject()});
  }
 static void readSlotWithFields(
     short fieldsKey[], ClassMetaDataSlot slot, ObjectInput input, Object obj)
     throws IOException, ClassNotFoundException {
   short numberOfFields = (short) fieldsKey.length;
   for (short i = 0; i < numberOfFields; i++) {
     ClassMetadataField field = slot.getFields()[fieldsKey[i]];
     if (field.getField().getType() == Integer.TYPE) {
       FieldsManager.getFieldsManager().setInt(obj, field, input.readInt());
     } else if (field.getField().getType() == Byte.TYPE) {
       FieldsManager.getFieldsManager().setByte(obj, field, input.readByte());
     } else if (field.getField().getType() == Long.TYPE) {
       FieldsManager.getFieldsManager().setLong(obj, field, input.readLong());
     } else if (field.getField().getType() == Float.TYPE) {
       FieldsManager.getFieldsManager().setFloat(obj, field, input.readFloat());
     } else if (field.getField().getType() == Double.TYPE) {
       FieldsManager.getFieldsManager().setDouble(obj, field, input.readDouble());
     } else if (field.getField().getType() == Short.TYPE) {
       FieldsManager.getFieldsManager().setShort(obj, field, input.readShort());
     } else if (field.getField().getType() == Character.TYPE) {
       FieldsManager.getFieldsManager().setCharacter(obj, field, input.readChar());
     } else if (field.getField().getType() == Boolean.TYPE) {
       FieldsManager.getFieldsManager().setBoolean(obj, field, input.readBoolean());
     } else {
       Object objTmp = input.readObject();
       FieldsManager.getFieldsManager().setObject(obj, field, objTmp);
     }
   }
 }
Esempio n. 27
0
  public static LiveRef read(ObjectInput in, boolean useNewFormat)
      throws IOException, ClassNotFoundException {
    Endpoint ep;
    ObjID id;

    // Now read in the endpoint, id, and result flag
    // (need to choose whether or not to read old JDK1.1 endpoint format)
    if (useNewFormat) {
      ep = TCPEndpoint.read(in);
    } else {
      ep = TCPEndpoint.readHostPortFormat(in);
    }
    id = ObjID.read(in);
    boolean isResultStream = in.readBoolean();

    LiveRef ref = new LiveRef(id, ep, false);

    if (in instanceof ConnectionInputStream) {
      ConnectionInputStream stream = (ConnectionInputStream) in;
      // save ref to send "dirty" call after all args/returns
      // have been unmarshaled.
      stream.saveRef(ref);
      if (isResultStream) {
        // set flag in stream indicating that remote objects were
        // unmarshaled.  A DGC ack should be sent by the transport.
        stream.setAckNeeded();
      }
    } else {
      DGCClient.registerRefs(ep, Arrays.asList(new LiveRef[] {ref}));
    }

    return ref;
  }
Esempio n. 28
0
 @Override
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   returnType = (ClassObjectType) in.readObject();
   params = (String[]) in.readObject();
   value = in.readObject();
   returnBound = in.readBoolean();
 }
Esempio n. 29
0
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
     sender=(Address)in.readObject();
     merge_rejected=in.readBoolean();
     if(!merge_rejected) {
         view=(View)in.readObject();
         digest=(Digest)in.readObject();
     }
 }
Esempio n. 30
0
 /**
  * It reads serialized data coming from flex client
  *
  * @param in
  * @throws IOException
  * @throws ClassNotFoundException
  */
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   // TODO Auto-generated method stub
   toolTip = in.readUTF();
   pathId = in.readUTF();
   isSelected = in.readBoolean();
   sourceNodeId = in.readInt();
   destinationNodeId = in.readInt();
 }