@Override public void writeExternal(final ObjectOutput out) throws IOException { out.writeUTF(name); out.writeBoolean(prettyName != null); if (prettyName != null) { out.writeUTF(prettyName); } }
@Override protected void write(ObjectOutput out) throws IOException { out.writeUTF(name != null ? name : ""); out.writeObject(value); }
@Override public void writeExternal(final ObjectOutput out) throws IOException { out.writeBoolean(name != null); if (name != null) { out.writeUTF(name); } out.writeBoolean(prettyName != null); if (prettyName != null) { out.writeUTF(prettyName); } out.writeObject(plans); }
@Override protected void write(ObjectOutput out) throws IOException { out.writeUTF(name != null ? name : ""); if (data != null) { out.writeInt(data.size()); for (String key : data.keySet()) { out.writeUTF(key); out.writeObject(data.get(key)); } } else { out.writeInt(0); } }
@Override public void writeExternal(final ObjectOutput out) throws IOException { out.writeBoolean(unit != null); if (unit != null) { out.writeUTF(unit.name()); } out.writeInt(number); }
@Override public void writeExternal(final ObjectOutput oo) throws IOException { oo.writeUTF(name); oo.writeUTF(prettyName); oo.writeObject(effectiveDateForExistingSubscriptions); oo.writeObject(product); oo.writeBoolean(recurringBillingMode != null); if (recurringBillingMode != null) { oo.writeUTF(recurringBillingMode.name()); } oo.writeObject(initialPhases); oo.writeObject(finalPhase); oo.writeInt(plansAllowedInBundle); oo.writeUTF(priceListName); } }
@Override public void writeExternal(final ObjectOutput oo) throws IOException { oo.writeBoolean(catalogName != null); if (catalogName != null) { // Can be null for placeholder XML oo.writeUTF(catalogName); } oo.writeObject(versions); }
@Override protected void write(ObjectOutput out) throws IOException { out.writeInt(params.size()); for(Map.Entry<String, ?> e : params.entrySet()) { out.writeUTF(e.getKey()); out.writeObject(e.getValue()); } }
public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF( id ); out.writeObject( unit ); }
@Override public void writeExternal(final ObjectOutput out) throws IOException { out.writeBoolean(unit != null); if (unit != null) { out.writeUTF(unit.name()); } out.writeBoolean(number != null); if (number != null) { out.writeInt(number); } }
/** * Write this list out to the given stream as part of serialization * * @param oos The stream to which to serialize our state */ @Override public void writeExternal(ObjectOutput oos) throws IOException { oos.writeBoolean( sorted ); oos.writeInt( executables.size() ); for ( E e : executables ) { oos.writeObject( e ); } // if the spaces are initialized, write them out for usage after deserialization if ( querySpaces == null ) { oos.writeInt( -1 ); } else { oos.writeInt( querySpaces.size() ); // these are always String, why we treat them as Serializable instead is beyond me... for ( Serializable querySpace : querySpaces ) { oos.writeUTF( querySpace.toString() ); } } }
@Override public void writeExternal(final ObjectOutput oo) throws IOException { oo.writeLong(id.getMostSignificantBits()); oo.writeLong(id.getLeastSignificantBits()); oo.writeUTF(createdDate.toString()); oo.writeUTF(updatedDate.toString()); oo.writeBoolean(externalKey != null); if (externalKey != null) { oo.writeUTF(externalKey); } oo.writeUTF(apiKey); } }
public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF(type); out.writeBoolean(event != null); if (event != null) { out.writeObject(event); } }
public void writeExternal(ObjectOutput out) throws IOException { if ( this.evaluator instanceof CompiledInvoker ) { out.writeObject( null ); } else { out.writeObject( this.evaluator ); } out.writeUTF( this.name ); out.writeObject( this.constraint ); out.writeInt( this.priority ); out.writeUTF( dialect ); out.writeObject( type ); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF( id ); out.writeObject( unit ); }
@Override public void writeObject(ObjectOutput output, Calendar calendar) throws IOException { output.writeUTF(calendar.getCalendarType()); output.writeLong(calendar.getTimeInMillis()); output.writeBoolean(calendar.isLenient()); output.writeUTF(calendar.getTimeZone().getID()); output.writeInt(calendar.getFirstDayOfWeek()); output.writeInt(calendar.getMinimalDaysInFirstWeek()); }
@Override public void writeExternal(final ObjectOutput out) throws IOException { out.writeBoolean(numberOfUnpaidInvoicesEqualsOrExceeds != null); if (numberOfUnpaidInvoicesEqualsOrExceeds != null) { out.writeInt(numberOfUnpaidInvoicesEqualsOrExceeds); } out.writeObject(totalUnpaidInvoiceBalanceEqualsOrExceeds); out.writeObject(timeSinceEarliestUnpaidInvoiceEqualsOrExceeds); out.writeObject(responseForLastFailedPayment); out.writeBoolean(controlTagInclusion != null); if (controlTagInclusion != null) { out.writeUTF(controlTagInclusion.name()); } out.writeBoolean(controlTagExclusion != null); if (controlTagExclusion != null) { out.writeUTF(controlTagExclusion.name()); } }