List of usage examples for java.io ObjectOutput writeBoolean
void writeBoolean(boolean v) throws IOException;
boolean
value to this output stream. From source file:com.splicemachine.derby.stream.function.RowAndIndexGenerator.java
@Override public void writeExternal(ObjectOutput out) throws IOException { try {/*from w ww. j av a 2 s. c o m*/ out.writeLong(heapConglom); out.writeBoolean(operationContext != null); if (operationContext != null) out.writeObject(operationContext); SIDriver.driver().getOperationFactory().writeTxn(txn, out); ArrayUtil.writeIntArray(out, pkCols); out.writeUTF(tableVersion); out.writeObject(execRowDefinition); out.writeInt(autoIncrementRowLocationArray.length); for (int i = 0; i < autoIncrementRowLocationArray.length; i++) out.writeObject(autoIncrementRowLocationArray[i]); out.writeInt(spliceSequences.length); for (int i = 0; i < spliceSequences.length; i++) { out.writeObject(spliceSequences[i]); } out.writeLong(heapConglom); out.writeInt(tentativeIndices.size()); for (DDLMessage.TentativeIndex ti : tentativeIndices) { byte[] message = ti.toByteArray(); out.writeInt(message.length); out.write(message); } } catch (Exception e) { throw new IOException(e); } }
From source file:net.openhft.chronicle.wire.benchmarks.Data.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeDouble(price);//from w w w.ja va2 s.c om out.writeLong(longInt); out.writeInt(smallInt); out.writeBoolean(flag); out.writeObject(side); out.writeObject(getText()); }
From source file:xbird.util.nio.RemoteMemoryMappedFile.java
public void writeExternal(ObjectOutput out) throws IOException { out.writeBoolean(_bigEndian); out.writeInt(_pageSize);//from w ww . j a va 2s . c o m IOUtils.writeString(_sockAddr.getHostName(), out); out.writeInt(_sockAddr.getPort()); IOUtils.writeString(_filePath, out); close(); }
From source file:org.ejbca.core.model.approval.approvalrequests.EditEndEntityApprovalRequest.java
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeInt(LATEST_VERSION);/*from w ww . j a v a 2 s . c o m*/ out.writeObject(newuserdata); out.writeBoolean(clearpwd); out.writeObject(orguserdata); }
From source file:com.splicemachine.orc.predicate.SpliceORCPredicate.java
@Override public void writeExternal(ObjectOutput out) throws IOException { ArrayUtil.writeIntArray(out, baseColumnMap); out.writeBoolean(qualifiers != null); if (qualifiers != null) { out.writeInt(qualifiers.length); out.writeInt(qualifiers[0].length); for (int i = 0; i < qualifiers[0].length; i++) { out.writeObject(qualifiers[0][i]); }/*from www. j a v a2 s . co m*/ for (int and_idx = 1; and_idx < qualifiers.length; and_idx++) { out.writeInt(qualifiers[and_idx].length); for (int or_idx = 0; or_idx < qualifiers[and_idx].length; or_idx++) { out.writeObject(qualifiers[and_idx][or_idx]); } } } out.writeObject(structType.json()); }
From source file:com.github.naoghuman.abclist.model.ExerciseTerm.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeLong(this.getExerciseId()); out.writeLong(this.getTermId()); out.writeBoolean(this.isMarkAsWrong()); }
From source file:xbird.xquery.expr.opt.ShippedVariable.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(_type);/*from ww w.j a v a2s . c om*/ out.writeObject(_varName); out.writeInt(_identifier); final Sequence result = _result; if (result == null) { out.writeBoolean(false); final XQExpression value = _value; if (value == null) { throw new IllegalStateException(); } out.writeObject(value); } else { out.writeBoolean(true); if (result instanceof RemoteSequence) { out.writeBoolean(true); RemoteSequence remote = (RemoteSequence) result; remote.writeExternal(out); } else { out.writeBoolean(false); final StopWatch sw = new StopWatch("Elapsed time for encoding `$" + getName() + '\''); final XQEventEncoder encoder = new XQEventEncoder(out); try { encoder.emit(result); } catch (XQueryException xqe) { throw new IllegalStateException("failed encoding `$" + getName() + '\'', xqe); } catch (Throwable e) { LOG.fatal(e); throw new IllegalStateException("failed encoding `$" + getName() + '\'', e); } if (LOG.isInfoEnabled()) { LOG.info(sw); } } } }
From source file:de.pro.dbw.file.dream.api.DreamModel.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeLong(this.getGenerationTime()); out.writeBoolean(this.isFavorite()); out.writeObject(this.getFavoriteReason()); out.writeObject(this.getDescription()); out.writeObject(this.getText()); out.writeObject(this.getTitle()); }
From source file:gridool.dht.ops.AddOperation.java
public void writeExternal(ObjectOutput out) throws IOException { IOUtils.writeString(idxName, out);// w w w. ja va2s . co m final int size = keys.size(); out.writeInt(size); for (int i = 0; i < size; i++) { byte[] k = keys.get(i); byte[] v = values.get(i); IOUtils.writeBytes(k, out); IOUtils.writeBytes(v, out); } out.writeBoolean(async); }
From source file:org.apache.openjpa.datacache.QueryKey.java
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(_candidateClassName); out.writeBoolean(_subclasses); out.writeObject(_accessPathClassNames); out.writeObject(_query);/*ww w . ja v a 2s. com*/ out.writeBoolean(_ignoreChanges); out.writeObject(_params); out.writeLong(_rangeStart); out.writeLong(_rangeEnd); out.writeInt(_timeout); }