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:LongRange.java

public static LongRange readFrom(ObjectInput in) throws IOException {
    long start = in.readLong();
    long end = in.readLong();
    return new LongRange(start, end);
}

From source file:com.splicemachine.derby.stream.output.direct.DirectTableWriterBuilder.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    destConglomerate = in.readLong();
    opCtx = (OperationContext) in.readObject();
    skipIndex = in.readBoolean();/*from   ww  w . j av  a  2s. c  o m*/
    txn = SIDriver.driver().getOperationFactory().readTxn(in);
}

From source file:com.adaptris.core.interceptor.MessageStatistic.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    setEndMillis(in.readLong());
    setTotalMessageCount(in.readInt());//  w w  w .  ja  v a  2s  .com
    setTotalMessageErrorCount(in.readInt());
    setTotalMessageSize(in.readLong());
    setStartMillis(in.readLong());
}

From source file:com.splicemachine.derby.stream.output.delete.DeleteTableWriterBuilder.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    heapConglom = in.readLong();
    txn = SIDriver.driver().getOperationFactory().readTxn(in);
    if (in.readBoolean())
        operationContext = (OperationContext) in.readObject();
}

From source file:LongRange.java

public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    this.start = in.readLong();
    this.end = in.readLong();
}

From source file:com.adaptris.core.interceptor.MetadataStatistic.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    setEndMillis(in.readLong());
    setMetadataStatistics((Properties) in.readObject());
    setStartMillis(in.readLong());// w  w  w  .  j ava 2s.  com
}

From source file:org.ihtsdo.otf.tcc.ddo.TimeReference.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    time = in.readLong();

    if (in.readBoolean()) {
        String formatPattern = in.readUTF();

        formatter = TimeHelper.getFormatter(formatPattern);
    }/*from  w w  w  .  j  a  va 2  s .  c o m*/
}

From source file:com.splicemachine.derby.stream.output.PipelineWriterBuilder.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    txn = SIDriver.driver().getOperationFactory().readTxn(in);
    heapConglom = in.readLong();
    skipIndex = in.readBoolean();/* w ww  .ja  v a  2s .c om*/
}

From source file:MutableLong.java

public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    long v = in.readLong();
    this._value = v;
    this._hashcode = (int) (v ^ (v >>> 32));
}

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

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);
    this.expirationTime = in.readLong();
    this.key = (K) in.readObject();
    //System.out.println("<readExternal> " + toString()); //TODO: remove
}