@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.name = in.readUTF(); this.prettyName = in.readBoolean() ? in.readUTF() : null; } }
private Map<String, String> decodeRequestAttachments(ObjectInput input) throws IOException, ClassNotFoundException { int size = input.readInt(); if (size <= 0) { return null; } Map<String, String> attachments = new HashMap<String, String>(); for (int i = 0; i < size; i++) { attachments.put(input.readUTF(), input.readUTF()); } return attachments; }
@Override protected void read(ObjectInput in) throws IOException, ClassNotFoundException { this.name = in.readUTF(); this.value = (Number) in.readObject(); } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.name = in.readBoolean() ? in.readUTF() : null; this.prettyName = in.readBoolean() ? in.readUTF() : null; this.plans = (CatalogEntityCollection<Plan>) in.readObject(); } }
@Override protected void read(ObjectInput in) throws IOException, ClassNotFoundException { this.name = in.readUTF(); Map<String, Number> map = new HashMap<String, Number>(); int sz = in.readInt(); for (int i = 0; i < sz; i++) { map.put(in.readUTF(), (Number) in.readObject()); } this.data = map; } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.name = in.readUTF(); this.prettyName = in.readUTF(); this.effectiveDateForExistingSubscriptions = (Date) in.readObject(); this.product = (DefaultProduct) in.readObject(); this.recurringBillingMode = in.readBoolean() ? BillingMode.valueOf(in.readUTF()) : null; this.initialPhases = (DefaultPlanPhase[]) in.readObject(); this.finalPhase = (DefaultPlanPhase) in.readObject(); this.plansAllowedInBundle = in.readInt(); this.priceListName = in.readUTF(); }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.unit = in.readBoolean() ? TimeUnit.valueOf(in.readUTF()) : null; this.number = in.readInt(); } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.catalogName = in.readBoolean() ? in.readUTF() : null; this.name = in.readBoolean() ? in.readUTF() : null; this.prettyName = in.readBoolean() ? in.readUTF() : null; this.category = in.readBoolean() ? ProductCategory.valueOf(in.readUTF()) : null; this.included = (CatalogEntityCollection<Product>) in.readObject(); this.available = (CatalogEntityCollection<Product>) in.readObject(); this.limits = (DefaultLimit[]) in.readObject(); } }
@Override protected void read(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); for(int i=0;i<size;i++) { String k = in.readUTF(); Object v = in.readObject(); params.put(k, v); } }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { id = in.readUTF(); unit = (MVELCompilationUnit) in.readObject(); }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.numberOfUnpaidInvoicesEqualsOrExceeds = in.readBoolean() ? in.readInt() : null; this.totalUnpaidInvoiceBalanceEqualsOrExceeds = (BigDecimal) in.readObject(); this.timeSinceEarliestUnpaidInvoiceEqualsOrExceeds = (DefaultDuration) in.readObject(); this.responseForLastFailedPayment = (PaymentResponse[]) in.readObject(); this.controlTagInclusion = in.readBoolean() ? ControlTagType.valueOf(in.readUTF()) : null; this.controlTagExclusion = in.readBoolean() ? ControlTagType.valueOf(in.readUTF()) : null; } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.unit = in.readBoolean() ? TimeUnit.valueOf(in.readUTF()) : null; this.number = in.readBoolean() ? in.readInt() : null; } }
@Override public void readExternal(final ObjectInput in) throws IOException { this.id = new UUID(in.readLong(), in.readLong()); this.createdDate = new DateTime(in.readUTF()); this.updatedDate = new DateTime(in.readUTF()); this.externalKey = in.readBoolean() ? in.readUTF() : null; this.apiKey = in.readUTF(); }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.catalogName = in.readBoolean() ? in.readUTF() : null; this.versions.addAll((Collection<? extends StandaloneCatalog>) in.readObject()); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.evaluator = (ReturnValueEvaluator) in.readObject(); this.name = in.readUTF(); this.constraint = (String) in.readObject(); this.priority = in.readInt(); this.dialect = in.readUTF(); this.type = (String) in.readObject(); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { id = in.readUTF(); unit = ( MVELCompilationUnit ) in.readObject(); }
/** * Read this object state back in from the given stream as part of de-serialization * * @param in The stream from which to read our serial state */ @Override @SuppressWarnings("unchecked") public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { sorted = in.readBoolean(); final int numberOfExecutables = in.readInt(); executables.ensureCapacity( numberOfExecutables ); if ( numberOfExecutables > 0 ) { for ( int i = 0; i < numberOfExecutables; i++ ) { E e = (E) in.readObject(); executables.add( e ); } } final int numberOfQuerySpaces = in.readInt(); if ( numberOfQuerySpaces < 0 ) { this.querySpaces = null; } else { querySpaces = new HashSet<Serializable>( CollectionHelper.determineProperSizing( numberOfQuerySpaces ) ); for ( int i = 0; i < numberOfQuerySpaces; i++ ) { querySpaces.add( in.readUTF() ); } } }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { if (in.readBoolean()) { accessType = AccessType.valueOf(in.readUTF()); } if (in.readBoolean()) { type = in.readUTF(); } if (in.readBoolean()) { content = new byte[ in.readInt() ]; in.readFully( content ); } }