List of usage examples for java.io ObjectInput readInt
int readInt() throws IOException;
From source file:com.splicemachine.derby.impl.sql.execute.operations.scanner.TableScannerBuilder.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { template = (ExecRow) in.readObject(); scan = readScan(in);// w ww . ja v a 2 s . c o m if (in.readBoolean()) { rowColumnMap = new int[in.readInt()]; for (int i = 0; i < rowColumnMap.length; ++i) { rowColumnMap[i] = in.readInt(); } } txn = readTxn(in); keyColumnEncodingOrder = ArrayUtil.readIntArray(in); if (in.readBoolean()) { keyColumnSortOrder = ArrayUtil.readBooleanArray(in); } keyColumnTypes = ArrayUtil.readIntArray(in); if (in.readBoolean()) { keyDecodingMap = ArrayUtil.readIntArray(in); } if (in.readBoolean()) { baseColumnMap = ArrayUtil.readIntArray(in); } accessedKeys = (FormatableBitSet) in.readObject(); reuseRowLocation = in.readBoolean(); oneSplitPerRegion = in.readBoolean(); if (in.readBoolean()) indexName = in.readUTF(); if (in.readBoolean()) tableVersion = in.readUTF(); if (in.readBoolean()) { int n = in.readInt(); fieldLengths = new int[n]; for (int i = 0; i < n; ++i) { fieldLengths[i] = in.readInt(); } n = in.readInt(); columnPositionMap = new int[n]; for (int i = 0; i < n; ++i) { columnPositionMap[i] = in.readInt(); } baseTableConglomId = in.readLong(); } demarcationPoint = in.readLong(); if (in.readBoolean()) optionalProbeValue = (DataValueDescriptor) in.readObject(); pin = in.readBoolean(); if (in.readBoolean()) delimited = in.readUTF(); if (in.readBoolean()) escaped = in.readUTF(); if (in.readBoolean()) lines = in.readUTF(); if (in.readBoolean()) storedAs = in.readUTF(); if (in.readBoolean()) location = in.readUTF(); }
From source file:com.px100systems.util.serialization.SerializationDefinition.java
/** * Externalizable helper - should be used in Externalizable implementations. * @param in input/*from ww w. ja v a 2 s. c om*/ * @param bean bean */ public void read(ObjectInput in, Object bean) { DataStream ds = null; try { int length = in.readInt(); byte[] data = new byte[length]; in.readFully(data); ds = new DataStream(data); read(ds, bean); } catch (IOException e) { throw new RuntimeException(e); } finally { if (ds != null) ds.close(); } }
From source file:org.opencms.db.CmsPublishList.java
/** * Reads a sequence of UUIDs from an object input and builds a list of <code>CmsResource</code> instances from it.<p> * /* ww w. jav a2 s . com*/ * @param in the object input * @return a list of <code>{@link CmsResource}</code> instances * * @throws IOException if something goes wrong */ private List<CmsUUID> internalReadUUIDList(ObjectInput in) throws IOException { List<CmsUUID> result = null; int i = in.readInt(); if (i >= 0) { result = new ArrayList<CmsUUID>(); while (i > 0) { result.add(internalReadUUID(in)); i--; } } return result; }
From source file:com.openbravo.pos.ticket.TicketInfo.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { m_sId = (String) in.readObject(); tickettype = in.readInt(); m_iTicketId = in.readInt();//from ww w .j a v a2s . c om m_Customer = (CustomerInfoExt) in.readObject(); m_dDate = (Date) in.readObject(); attributes = (Properties) in.readObject(); m_aLines = (List<TicketLineInfo>) in.readObject(); m_User = null; m_sActiveCash = null; payments = new ArrayList<>(); // JG June 2102 diamond inference taxes = null; ticketstatus = in.readInt(); }
From source file:org.apache.openjpa.datacache.QueryKey.java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { _candidateClassName = (String) in.readObject(); _subclasses = in.readBoolean();/*from w w w . j a v a 2 s.c om*/ _accessPathClassNames = (Set<String>) in.readObject(); _query = (String) in.readObject(); _ignoreChanges = in.readBoolean(); _params = (Map<Object, Object>) in.readObject(); _rangeStart = in.readLong(); _rangeEnd = in.readLong(); _timeout = in.readInt(); }
From source file:ArraySet.java
@SuppressWarnings("unchecked") public final void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { int num = in.readInt(); mapTable = createArray(num);/*from www. j a v a 2 s .c o m*/ listTable = createArray(num); threshold = (int) (num * LOAD_FACTOR); int size = in.readInt(); for (int i = 0; i < size; i++) { K key = (K) in.readObject(); V value = (V) in.readObject(); put(key, value); } }
From source file:org.perf.log.logger.PerfLogData.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { setTransactionTime(in.readLong());//from w ww .j av a 2s . c o m setGuid(readStr(in)); setSessionId(readStr(in)); setThreadName(readStr(in)); setThreadId(readStr(in)); setTransactionDate(new Date(in.readLong())); setServerName(readStr(in)); setServerIp(readStr(in)); setCloneName(readStr(in)); setJvmDepth(in.readInt()); setTxnFilterDepth(in.readInt()); setTransactionType(readStr(in)); setUserId(readStr(in)); setTransactionName(readStr(in)); setSubTransactionName(readStr(in)); setTransactionClass(readStr(in)); setInfoContextString(readStr(in)); setMessage(readStr(in)); setThrowableClassName(readStr(in)); setThrowableMessage(readStr(in)); // add any required PerfLogContext data }
From source file:SequencedHashMap.java
/** * Deserializes this map from the given stream. * * @param in the stream to deserialize from * @throws IOException if the stream raises it * @throws ClassNotFoundException if the stream raises it *//* ww w . ja va 2 s . c om*/ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); for (int i = 0; i < size; i++) { Object key = in.readObject(); Object value = in.readObject(); put(key, value); } }
From source file:org.opencms.db.CmsPublishList.java
/** * @see java.io.Externalizable#readExternal(java.io.ObjectInput) *//*w w w . j a v a2 s . co m*/ public void readExternal(ObjectInput in) throws IOException { // read the history id m_publishHistoryId = internalReadUUID(in); // read the project id m_projectId = internalReadUUID(in); if (m_projectId.isNullUUID()) { m_projectId = null; } // read the flags m_publishSiblings = (in.readInt() != 0); m_publishSubResources = (in.readInt() != 0); // read the list of direct published resources m_directPublishResourceUUIDs = internalReadUUIDList(in); // read the list of published files m_fileUUIDs = internalReadUUIDList(in); // read the list of published folders m_folderUUIDs = internalReadUUIDList(in); // read the list of deleted folders m_deletedFolderUUIDs = internalReadUUIDList(in); // set revive flag to indicate that resource lists must be revived m_needsRevive = true; }
From source file:xbird.xquery.dm.instance.DocumentTableModel.java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this._docid = in.readInt(); final IDocumentTable doctbl = (IDocumentTable) in.readObject(); if (doctbl instanceof MemoryMappedDocumentTable) { this._mmapedStore = true; MemoryMappedDocumentTable mmDoctbl = (MemoryMappedDocumentTable) doctbl; String docId = mmDoctbl.getDocumentIdentifer(); if (docId != null) { setPool(mmDoctbl, docId);//from w w w . j ava2 s . c o m } } this._store = doctbl; }