List of usage examples for java.io ObjectInput readLong
long readLong() throws IOException;
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 . j a va 2 s . com 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(); }
From source file:com.akop.bach.util.SerializableCookie.java
public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { nullMask = in.readInt();/* ww w .ja v a2 s. co m*/ String name = null; String value = null; String comment = null; //String commentURL = null; Date expiryDate = null; //boolean isPersistent = false; String domain = null; String path = null; int[] ports = null; boolean isSecure = false; int version = 0; if ((nullMask & NAME) == 0) name = in.readUTF(); if ((nullMask & VALUE) == 0) value = in.readUTF(); if ((nullMask & COMMENT) == 0) comment = in.readUTF(); if ((nullMask & COMMENT_URL) == 0) //commentURL = in.readUTF(); if ((nullMask & EXPIRY_DATE) == 0) expiryDate = new Date(in.readLong()); //isPersistent = in.readBoolean(); if ((nullMask & DOMAIN) == 0) domain = in.readUTF(); if ((nullMask & PATH) == 0) path = in.readUTF(); if ((nullMask & PORTS) == 0) { final int len = in.readInt(); if (len < 10) { ports = new int[len]; for (int i = 0; i < len; i++) ports[i] = in.readInt(); } } isSecure = in.readBoolean(); version = in.readInt(); final BasicClientCookie bc = new BasicClientCookie(name, value); bc.setComment(comment); bc.setDomain(domain); bc.setExpiryDate(expiryDate); bc.setPath(path); bc.setSecure(isSecure); bc.setVersion(version); this.cookie = bc; }
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 w w. j av a 2 s . c om*/ 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.sentaroh.android.SMBExplorer.SMBExplorerMain.java
@Override public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException { @SuppressWarnings("unused") long sid = input.readLong(); progressVisible = input.readInt();//from w w w . j a v a 2 s .co m progressCancelBtnText = input.readUTF(); progressMsgText = input.readUTF(); lclPos = input.readInt(); lclPosTop = input.readInt(); profPos = input.readInt(); profPosTop = input.readInt(); remPos = input.readInt(); remPosTop = input.readInt(); dialogVisible = input.readInt(); dialogMsgText = input.readUTF(); }
From source file:com.sentaroh.android.SMBExplorer.SMBExplorerMain.java
@SuppressWarnings("unchecked") @Override// w w w .j av a 2s . c o m public void readExternal(ObjectInput objin) throws IOException, ClassNotFoundException { // Log.v("","rd"); long sid = objin.readLong(); if (serialVersionUID != sid) { throw new IOException("serialVersionUID was not matched by saved UID"); } paste_list = (ArrayList<FileListItem>) SerializeUtil.readArrayList(objin); paste_from_url = SerializeUtil.readUtf(objin); paste_to_url = SerializeUtil.readUtf(objin); paste_item_list = SerializeUtil.readUtf(objin); is_paste_copy = objin.readBoolean(); is_paste_enabled = objin.readBoolean(); is_paste_from_local = objin.readBoolean(); local_dir_hist = (ArrayList<String>) SerializeUtil.readArrayList(objin); remote_dir_hist = (ArrayList<String>) SerializeUtil.readArrayList(objin); remote_file_list_cache = (ArrayList<FileListCacheItem>) SerializeUtil.readArrayList(objin); remote_curr_file_list = (FileListCacheItem) objin.readObject(); local_file_list_cache = (ArrayList<FileListCacheItem>) SerializeUtil.readArrayList(objin); local_curr_file_list = (FileListCacheItem) objin.readObject(); vsa = new ViewSaveArea(); vsa.readExternal(objin); dialog_msg_cat = objin.readUTF(); remoteBase = SerializeUtil.readUtf(objin); localBase = SerializeUtil.readUtf(objin); remoteDir = SerializeUtil.readUtf(objin); localDir = SerializeUtil.readUtf(objin); currentTabName = SerializeUtil.readUtf(objin); smbUser = SerializeUtil.readUtf(objin); smbPass = SerializeUtil.readUtf(objin); localUpButtonEnabled = objin.readBoolean(); localTopButtonEnabled = objin.readBoolean(); remoteUpButtonEnabled = objin.readBoolean(); remoteTopButtonEnabled = objin.readBoolean(); }