Example usage for java.io ObjectInput readInt

List of usage examples for java.io ObjectInput readInt

Introduction

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

Prototype

int readInt() throws IOException;

Source Link

Document

Reads four input bytes and returns an int value.

Usage

From source file:edu.wustl.cab2b.admin.flex.DAGNode.java

/**
 * It reads serialized data coming from flex client
 * //  ww  w .j  a v a  2s  .c  o  m
 * @param in
 * @throws IOException
 * @throws ClassNotFoundException
 */
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    nodeName = in.readUTF();
    toolTip = in.readUTF();
    nodeId = in.readInt();
    operatorBetweenAttrAndAssociation = in.readUTF();
    nodeType = in.readUTF();
    associationList = (List<DAGNode>) in.readObject();
    operatorList = (List<String>) in.readObject();
    dagpathList = (List<DAGLink>) in.readObject();
    errorMsg = in.readUTF();
    xCordinate = in.readInt();
    yCordinate = in.readInt();
    entityId = in.readInt();
    attributesList = (List<String>) in.readObject();

    CategoryDagPanel categoryDagPanel = (CategoryDagPanel) session
            .getAttribute(AdminConstants.CATEGORY_INSTANCE);
    for (DAGNode dagNode : categoryDagPanel.getDagNodeSet()) {
        if (dagNode.getNodeId() == nodeId) {
            dagNode.xCordinate = xCordinate;
            dagNode.yCordinate = yCordinate;
        }
    }
}

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:net.openhft.chronicle.wire.benchmarks.Data.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    setPrice(in.readDouble());//from  w  ww.  j av  a  2  s .  co  m
    setLongInt(in.readLong());
    setSmallInt(in.readInt());
    setFlag(in.readBoolean());
    setSide((Side) in.readObject());
    setText((String) in.readObject());
}

From source file:com.conwet.silbops.model.AbstractMapping.java

@Override
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException {

    Map<Attribute, Value> map = new HashMap<>();
    int size = input.readInt();

    for (int i = 0; i < size; i++) {

        Attribute attribute = attributeExt.readExternal(input);
        Value value = valueExt.readExternal(input, attribute.getType());
        map.put(attribute, value);/*from   ww w.  j  a v  a2  s  .  co  m*/
    }

    attributes = map;
}

From source file:com.talis.storage.s3.ExternalizableS3Object.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {

    this.setKey(in.readUTF());
    this.setBucketName(in.readUTF());
    this.setAcl((AccessControlList) in.readObject());
    this.setMetadataComplete(in.readBoolean());
    this.addAllMetadata((Map) in.readObject());
    int length = in.readInt();
    byte[] entity = new byte[length];
    in.readFully(entity);//from ww  w  . j  av a2  s  .  co  m
    this.setDataInputStream(new ByteArrayInputStream(entity));
}

From source file:com.conwet.silbops.model.Advertise.java

@Override
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException {

    Set<Attribute> attrSet = new HashSet<>();
    int size = input.readInt();

    for (int i = 0; i < size; i++) {

        attrSet.add(externalizer.readExternal(input));
    }/*from  w  w  w.j a va 2  s . c  om*/

    attributes = attrSet;
}

From source file:BasicUUID.java

/**
 * Read this in//from w w  w  .j a v a2 s . c  o m
 * 
 * @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.sentaroh.android.TextFileBrowser.ViewedFileListAdapter.java

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    file_path = in.readUTF();//from w w w.  j a  v  a 2  s.co  m
    file_name = in.readUTF();
    listViewPos[0] = in.readInt();
    listViewPos[1] = in.readInt();
    copyFrom = in.readInt();
    copyTo = in.readInt();
    horizontalPos = in.readInt();
    findResultPos = in.readInt();
    findPosIsValid = in.readBoolean();
    searchEnabled = in.readBoolean();
    searchString = in.readUTF();
    searchCaseSensitive = in.readBoolean();

    lineBreak = in.readInt();
    browseMode = in.readInt();
    showLineNo = in.readBoolean();

    encodeName = in.readUTF();
    viewerParmsInitRequired = in.readBoolean();
    viewerParmsRestoreRequired = in.readBoolean();

}

From source file:com.conwet.silbops.model.ContextFunction.java

@Override
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException {

    Map<Key, Value> map = new HashMap<>();
    int size = input.readInt();

    for (int i = 0; i < size; i++) {

        Key key = (Key) input.readObject();
        Value value = valueExt.readExternal(input, key.subscriptionAttribute.getType());
        map.put(key, value);//from  w  w  w.  ja  v a  2  s.co  m
    }

    constraint = map;
}

From source file:org.knime.al.util.noveltydetection.knfst.MultiClassKNFST.java

@Override
public void readExternal(final ObjectInput arg0) throws IOException, ClassNotFoundException {
    // call super method
    super.readExternal(arg0);

    // read labels
    m_labels = new String[arg0.readInt()];
    for (int l = 0; l < m_labels.length; l++) {
        m_labels[l] = arg0.readUTF();/*w w w .  j  a  va2 s .  co  m*/
    }

}