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:de.pro.dbw.file.reflection.api.ReflectionCommentModel.java

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

From source file:com.splicemachine.derby.stream.compaction.SparkCompactionFunction.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);
    smallestReadPoint = in.readLong();
    namespace = new byte[in.readInt()];
    in.readFully(namespace);//from ww w .j av  a2s . c om
    tableName = new byte[in.readInt()];
    in.readFully(tableName);
    byte[] hriBytes = new byte[in.readInt()];
    in.readFully(hriBytes);
    try {
        hri = HRegionInfo.parseFrom(hriBytes);
    } catch (Exception e) {
        throw new IOException(e);
    }
    storeColumn = new byte[in.readInt()];
    in.readFully(storeColumn);
    SpliceSpark.setupSpliceStaticComponents();
}

From source file:com.aol.advertising.qiao.util.cache.ValueWrapper.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.insertionTime = in.readLong();
    this.lastAccessTime = in.readLong();
    this.timeout = in.readInt();
    this.isModified = in.readByte();
    this.value = (V) in.readObject();
}

From source file:de.pro.dbw.file.tipofthenight.api.TipOfTheNightModel.java

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

From source file:com.github.naoghuman.cm.model.matrix.MatrixModel.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(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.cm.model.notes.NotesModel.java

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

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

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.setId(in.readLong());
    this.setExerciseId(in.readLong());
    this.setTermId(in.readLong());
    this.setMarkAsWrong(in.readBoolean());
}

From source file:com.github.naoghuman.cm.model.glossary.GlossaryModel.java

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

From source file:com.splicemachine.derby.stream.function.RowAndIndexGenerator.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    heapConglom = in.readLong();
    if (in.readBoolean())
        operationContext = (OperationContext) in.readObject();
    txn = SIDriver.driver().getOperationFactory().readTxn(in);
    pkCols = ArrayUtil.readIntArray(in);
    tableVersion = in.readUTF();/*w w w  . j a v  a 2s.c  om*/
    execRowDefinition = (ExecRow) in.readObject();
    autoIncrementRowLocationArray = new RowLocation[in.readInt()];
    for (int i = 0; i < autoIncrementRowLocationArray.length; i++)
        autoIncrementRowLocationArray[i] = (RowLocation) in.readObject();
    spliceSequences = new SpliceSequence[in.readInt()];
    for (int i = 0; i < spliceSequences.length; i++)
        spliceSequences[i] = (SpliceSequence) in.readObject();
    heapConglom = in.readLong();
    int iSize = in.readInt();
    tentativeIndices = new ArrayList<>(iSize);
    for (int i = 0; i < iSize; i++) {
        byte[] message = new byte[in.readInt()];
        in.readFully(message);
        tentativeIndices.add(DDLMessage.TentativeIndex.parseFrom(message));
    }
}

From source file:com.github.naoghuman.cm.model.category.CategoryModel.java

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