List of usage examples for java.io ObjectInput readUTF
String readUTF() throws IOException;
From source file:org.ihtsdo.otf.tcc.ddo.TimeReference.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { time = in.readLong();/*from w w w . ja va 2s .c o m*/ if (in.readBoolean()) { String formatPattern = in.readUTF(); formatter = TimeHelper.getFormatter(formatPattern); } }
From source file:edu.wustl.cab2b.admin.flex.DAGNode.java
/** * It reads serialized data coming from flex client * /*from w w w . ja va 2 s. c om*/ * @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.sentaroh.android.TextFileBrowser.ViewedFileListAdapter.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { file_path = in.readUTF(); file_name = in.readUTF();//from w w w . jav a 2s . com 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.splicemachine.pipeline.constraint.ConstraintContext.java
@Override public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException { short len = objectInput.readShort(); if (len > 0) { messageArgs = new String[len]; for (int i = 0; i < messageArgs.length; i++) { messageArgs[i] = objectInput.readUTF(); }//from ww w . j a v a 2 s . c om } }
From source file:org.apache.ode.utils.NSContext.java
/** * @see Externalizable#readExternal(java.io.ObjectInput) *///ww w .ja va2 s . c om public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int numKeys = in.readInt(); for (int i = 0; i < numKeys; ++i) { String prefix = in.readUTF(); String uri = in.readUTF(); _prefixToUriMap.put(prefix, uri); } if (__log.isTraceEnabled()) { __log.trace("readExternal: contents=" + _prefixToUriMap); } }
From source file:org.openspaces.remoting.ExecutorRemotingTask.java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { lookupName = in.readUTF(); methodName = in.readUTF();//from w ww .j a va2 s. co m int size = in.readInt(); if (size > 0) { arguments = new Object[size]; for (int i = 0; i < size; i++) { arguments[i] = in.readObject(); } } size = in.readInt(); if (size > 0) { metaArguments = new Object[size]; for (int i = 0; i < size; i++) { metaArguments[i] = in.readObject(); } } methodHash = new RemotingUtils.MethodHash(); methodHash.readExternal(in); }
From source file:org.shredzone.flattr4j.connector.FlattrObject.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { try {/*from w ww . jav a2 s . c o m*/ data = new JSONObject(in.readUTF()); } catch (JSONException ex) { throw new IOException("JSON deserialization failed: " + ex.getMessage()); } }
From source file:org.apache.tapestry.engine.BaseEngine.java
/** * Reconstructs the list of active page names * written by {@link #writeExternal(ObjectOutput)}. * /* ww w . java 2 s .c o m*/ **/ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int count = in.readInt(); if (count > 0) _activePageNames = new HashSet(count); for (int i = 0; i < count; i++) { String name = in.readUTF(); _activePageNames.add(name); } }
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(); }/* www . ja va 2 s . co m*/ }
From source file:com.splicemachine.derby.stream.output.insert.InsertTableWriterBuilder.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { isUpsert = in.readBoolean();/*from ww w.java 2s . c o m*/ if (in.readBoolean()) operationContext = (OperationContext) in.readObject(); txn = SIDriver.driver().getOperationFactory().readTxn(in); pkCols = ArrayUtil.readIntArray(in); tableVersion = in.readUTF(); execRowTypeFormatIds = ArrayUtil.readIntArray(in); 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(); }