本文整理汇总了Java中java.io.ObjectInput.readLong方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectInput.readLong方法的具体用法?Java ObjectInput.readLong怎么用?Java ObjectInput.readLong使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.io.ObjectInput
的用法示例。
在下文中一共展示了ObjectInput.readLong方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// POSITION
_pos = in.readInt();
// NO_ENTRY_VALUE
no_entry_value = in.readLong();
// ENTRIES
int len = in.readInt();
_data = new long[ len ];
for( int i = 0; i < len; i++ ) {
_data[ i ] = in.readLong();
}
}
示例2: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readLong();
// NO_ENTRY_VALUE
no_entry_value = in.readShort();
}
示例3: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readChar();
// NO_ENTRY_VALUE
no_entry_value = in.readLong();
}
示例4: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readLong();
// NO_ENTRY_VALUE
no_entry_value = in.readChar();
}
示例5: oldDispatch
import java.io.ObjectInput; //导入方法依赖的package包/类
/**
* Handle server-side dispatch using the RMI 1.1 stub/skeleton
* protocol, given a non-negative operation number that has
* already been read from the call stream.
* Exceptions are handled by the caller to be sent to the remote client.
*
* @param obj the target remote object for the call
* @param call the "remote call" from which operation and
* method arguments can be obtained.
* @param op the operation number
* @throws Exception if unable to marshal return result or
* release input or output streams
*/
private void oldDispatch(Remote obj, RemoteCall call, int op)
throws Exception
{
long hash; // hash for matching stub with skeleton
// read remote call header
ObjectInput in;
in = call.getInputStream();
try {
Class<?> clazz = Class.forName("sun.rmi.transport.DGCImpl_Skel");
if (clazz.isAssignableFrom(skel.getClass())) {
((MarshalInputStream)in).useCodebaseOnly();
}
} catch (ClassNotFoundException ignore) { }
try {
hash = in.readLong();
} catch (Exception ioe) {
throw new UnmarshalException("error unmarshalling call header", ioe);
}
// if calls are being logged, write out object id and operation
logCall(obj, skel.getOperations()[op]);
unmarshalCustomCallData(in);
// dispatch to skeleton for remote object
skel.dispatch(obj, call, op, hash);
}
示例6: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readByte();
// NO_ENTRY_VALUE
no_entry_value = in.readLong();
}
示例7: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readLong();
// NO_ENTRY_VALUE
no_entry_value = in.readInt();
}
示例8: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
iUniqueId = in.readLong();
iName = (String)in.readObject();
int nrNames = in.readInt();
iNameByCourse.clear();
for (int i = 0; i < nrNames; i++)
iNameByCourse.put(in.readLong(), (String)in.readObject());
iSubpartId = in.readLong();
iParentId = in.readLong();
if (iParentId < 0) iParentId = null;
iLimit = in.readInt();
iNote = (String)in.readObject();
iTime = (in.readBoolean() ? new XTime(in) : null);
int nrRooms = in.readInt();
iRooms.clear();
for (int i = 0; i < nrRooms; i++)
iRooms.add(new XRoom(in));
int nrInstructors = in.readInt();
iInstructors.clear();
for (int i = 0; i < nrInstructors; i++)
iInstructors.add(new XInstructor(in));
iAllowOverlap = in.readBoolean();
iInstructionalType = (String)in.readObject();
iSubpartName = (String)in.readObject();
iExternalId = (String)in.readObject();
int nrExtIds = in.readInt();
iExternalIdByCourse.clear();
for (int i = 0; i < nrExtIds; i++)
iExternalIdByCourse.put(in.readLong(), (String)in.readObject());
iEnabledForScheduling = in.readBoolean();
iCancelled = in.readBoolean();
}
示例9: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readLong();
// NO_ENTRY_VALUE
no_entry_value = in.readFloat();
}
示例10: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readLong();
// NO_ENTRY_VALUE
no_entry_value = in.readLong();
}
示例11: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readDouble();
// NO_ENTRY_VALUE
no_entry_value = in.readLong();
}
示例12: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
iSlot = in.readInt();
iLength = in.readInt();
iBreakTime = in.readInt();
iDays = in.readInt();
iWeeks = (BitSet)in.readObject();
iDatePatternId = in.readLong();
if (iDatePatternId < 0) iDatePatternId = null;
iDatePatternName = (String)in.readObject();
}
示例13: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// SUPER
super.readExternal( in );
// NO_ENTRY_KEY
no_entry_key = in.readInt();
// NO_ENTRY_VALUE
no_entry_value = in.readLong();
}
示例14: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
iExternalId = (String)in.readObject();
iTimeStamp = (in.readBoolean() ? new Date(in.readLong()) : null);
iName = (String)in.readObject();
}
示例15: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
iType = XReservationType.values()[in.readInt()];
iOfferingId = in.readLong();
iReservationId = in.readLong();
}