List of usage examples for java.io ObjectOutput writeLong
void writeLong(long v) throws IOException;
long
value, which is comprised of eight bytes, to the output stream. From source file:com.splicemachine.derby.stream.function.RowAndIndexGenerator.java
@Override public void writeExternal(ObjectOutput out) throws IOException { try {//from w w w . j av a 2s . 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:com.github.naoghuman.abclist.model.LinkMapping.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeLong(this.getParentId()); out.writeObject(this.getParentType().getType()); out.writeLong(this.getChildId()); out.writeObject(this.getChildType().getType()); }
From source file:com.github.naoghuman.cm.model.subcategory.SubCategoryModel.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeLong(this.getMatrixId()); out.writeLong(this.getCategoryId()); out.writeLong(this.getGenerationTime()); out.writeObject(StringEscapeUtils.escapeHtml4(this.getTitle())); out.writeObject(StringEscapeUtils.escapeHtml4(this.getDescription())); }
From source file:com.github.naoghuman.abclist.model.Topic.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeLong(this.getParentId()); out.writeLong(this.getGenerationTime()); out.writeObject(this.getDescription()); out.writeObject(this.getTitle()); }
From source file:de.pro.dbw.file.reflection.api.ReflectionModel.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeObject(this.getReflectionCommentModels()); out.writeLong(this.getGenerationTime()); out.writeObject(this.getSource()); out.writeObject(this.getText()); out.writeObject(this.getTitle()); }
From source file:BasicUUID.java
/** * Write this out.//from w w w . j a va 2s . c o m * * @exception IOException * error writing to log stream */ public void writeExternal(ObjectOutput out) throws IOException { // RESOLVE: write out the byte array instead? out.writeLong(majorId); out.writeLong(timemillis); out.writeInt(sequence); }
From source file:com.splicemachine.derby.stream.output.update.UpdateTableWriterBuilder.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeBoolean(operationContext != null); if (operationContext != null) out.writeObject(operationContext); out.writeLong(heapConglom); ArrayUtil.writeIntArray(out, formatIds); ArrayUtil.writeIntArray(out, columnOrdering); ArrayUtil.writeIntArray(out, pkCols); out.writeObject(pkColumns);//from www.j ava2 s .com out.writeObject(heapList); out.writeUTF(tableVersion); SIDriver.driver().getOperationFactory().writeTxn(txn, out); ArrayUtil.writeIntArray(out, execRowTypeFormatIds); }
From source file:com.github.naoghuman.abclist.model.Exercise.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeLong(this.getTopicId()); out.writeLong(this.getGenerationTime()); out.writeLong(this.getFinishedTime()); out.writeBoolean(this.isConsolidated()); out.writeBoolean(this.isReady()); out.writeObject(this.getChoosenTime()); }
From source file:com.github.naoghuman.abclist.model.Link.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.getId()); out.writeLong(this.getGenerationTime()); out.writeObject(this.getAlias()); // TODO (de-/encrypt for db) out.writeObject(this.getDescription()); // TODO (de-/encrypt for db) out.writeObject(this.getUrl()); // TODO (de-/encrypt for db) out.writeObject(this.getImage()); out.writeBoolean(this.getFavorite()); }
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()); }