当前位置: 首页>>代码示例>>Java>>正文


Java ObjectInput.readLong方法代码示例

本文整理汇总了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();
	}
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:20,代码来源:TLongArrayList.java

示例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();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TLongShortHash.java

示例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();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TCharLongHash.java

示例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();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TLongCharHash.java

示例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);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:41,代码来源:UnicastServerRef.java

示例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();
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:15,代码来源:TByteLongHash.java

示例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();
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:15,代码来源:TLongIntHash.java

示例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();
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:40,代码来源:XSection.java

示例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();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TLongFloatHash.java

示例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();
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:15,代码来源:TLongLongHash.java

示例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();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TDoubleLongHash.java

示例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();
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:12,代码来源:XTime.java

示例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();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TIntLongHash.java

示例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();
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:7,代码来源:XApproval.java

示例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();
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:7,代码来源:XReservationId.java


注:本文中的java.io.ObjectInput.readLong方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。