Example usage for java.io ObjectInput readLong

List of usage examples for java.io ObjectInput readLong

Introduction

In this page you can find the example usage for java.io ObjectInput readLong.

Prototype

long readLong() throws IOException;

Source Link

Document

Reads eight input bytes and returns a long value.

Usage

From source file:net.openhft.chronicle.wire.benchmarks.Data.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    setPrice(in.readDouble());/*  w  w w. ja v a 2s . c om*/
    setLongInt(in.readLong());
    setSmallInt(in.readInt());
    setFlag(in.readBoolean());
    setSide((Side) in.readObject());
    setText((String) in.readObject());
}

From source file:BasicUUID.java

/**
 * Read this in//from w ww.j av  a  2  s.  c om
 * 
 * @exception IOException
 *              error reading from log stream
 */
public void readExternal(ObjectInput in) throws IOException {
    majorId = in.readLong();
    timemillis = in.readLong();
    sequence = in.readInt();
}

From source file:com.github.naoghuman.abclist.model.Term.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setGenerationTime(in.readLong());
    this.setDescription(String.valueOf(in.readObject()));
    this.setTitle(String.valueOf(in.readObject()));
}

From source file:com.github.naoghuman.abclist.model.LinkMapping.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setParentId(in.readLong());

    final Optional<LinkMappingType> primaryType = LinkMappingType.getType(String.valueOf(in.readObject()));
    this.setParentType(primaryType.isPresent() ? primaryType.get() : LinkMappingType.NOT_DEFINED);

    this.setChildId(in.readLong());

    final Optional<LinkMappingType> childType = LinkMappingType.getType(String.valueOf(in.readObject()));
    this.setChildType(childType.isPresent() ? childType.get() : LinkMappingType.NOT_DEFINED);
}

From source file:com.github.naoghuman.cm.model.subcategory.SubCategoryModel.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setMatrixId(in.readLong());
    this.setCategoryId(in.readLong());
    this.setGenerationTime(in.readLong());
    this.setTitle(StringEscapeUtils.unescapeHtml4(String.valueOf(in.readObject())));
    this.setDescription(StringEscapeUtils.unescapeHtml4(String.valueOf(in.readObject())));
}

From source file:com.github.naoghuman.abclist.model.Topic.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setParentId(in.readLong());
    this.setGenerationTime(in.readLong());
    this.setDescription(String.valueOf(in.readObject()));
    this.setTitle(String.valueOf(in.readObject()));
}

From source file:com.splicemachine.derby.stream.output.update.UpdateTableWriterBuilder.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    if (in.readBoolean())
        operationContext = (OperationContext) in.readObject();
    heapConglom = in.readLong();
    formatIds = ArrayUtil.readIntArray(in);
    columnOrdering = ArrayUtil.readIntArray(in);
    if (columnOrdering == null)
        columnOrdering = new int[] {};
    pkCols = ArrayUtil.readIntArray(in);
    if (pkCols == null)
        pkCols = new int[0];

    pkColumns = (FormatableBitSet) in.readObject();
    heapList = (FormatableBitSet) in.readObject();
    tableVersion = in.readUTF();/* ww w  . j a v  a2  s  . c o m*/
    txn = SIDriver.driver().getOperationFactory().readTxn(in);
    execRowTypeFormatIds = ArrayUtil.readIntArray(in);
    execRowDefinition = WriteReadUtils.getExecRowFromTypeFormatIds(execRowTypeFormatIds);
}

From source file:de.pro.dbw.file.reflection.api.ReflectionModel.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setReflectionCommentModels((List<ReflectionCommentModel>) in.readObject());
    this.setGenerationTime(in.readLong());
    this.setSource(String.valueOf(in.readObject()));
    this.setText(String.valueOf(in.readObject()));
    this.setTitle(String.valueOf(in.readObject()));
}

From source file:com.github.naoghuman.abclist.model.Exercise.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setTopicId(in.readLong());
    this.setGenerationTime(in.readLong());
    this.setFinishedTime(in.readLong());
    this.setConsolidated(in.readBoolean());
    this.setReady(in.readBoolean());
    this.setChoosenTime(String.valueOf(in.readObject()));
}

From source file:com.github.naoghuman.abclist.model.Link.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setGenerationTime(in.readLong());
    this.setAlias(String.valueOf(in.readObject())); // TODO (de-/encrypt for db)
    this.setDescription(String.valueOf(in.readObject())); // TODO (de-/encrypt for db)
    this.setUrl(String.valueOf(in.readObject())); // TODO (de-/encrypt for db)
    this.setImage(String.valueOf(in.readObject()));
    this.setFavorite(in.readBoolean());
}