本文整理汇总了Java中java.io.ObjectInput.readByte方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectInput.readByte方法的具体用法?Java ObjectInput.readByte怎么用?Java ObjectInput.readByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.io.ObjectInput
的用法示例。
在下文中一共展示了ObjectInput.readByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
public void readExternal(ObjectInput in)
throws IOException, ClassNotFoundException
{
z = in.readBoolean();
b = in.readByte();
c = in.readChar();
s = in.readShort();
i = in.readInt();
f = in.readFloat();
j = in.readLong();
d = in.readDouble();
str = (String) in.readObject();
parent = in.readObject();
left = in.readObject();
right = in.readObject();
}
示例2: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// LOAD FACTOR
float old_factor = _loadFactor;
_loadFactor = in.readFloat();
// AUTO COMPACTION LOAD FACTOR
_autoCompactionFactor = in.readFloat();
// If we change the laod factor from the default, re-setup
if ( old_factor != _loadFactor ) {
setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) );
}
}
示例3: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
super.readExternal(in);
int nrStudents = in.readInt();
iStudentIds.clear();
for (int i = 0; i < nrStudents; i++)
iStudentIds.add(in.readLong());
iLimit = in.readInt();
if (iLimit == -2) iLimit = null;
if (getType() == XReservationType.Override) {
switch (in.readByte()) {
case 0:
iExpired = false; break;
case 1:
iExpired = true; break;
default:
iExpired = null; break;
}
}
}
示例4: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal(ObjectInput in)
throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// NO_ENTRY_VALUE
no_entry_value = in.readLong();
// ENTRIES
int len = in.readInt();
for (int i = 0; i < len; i++) {
add(in.readLong());
}
}
示例5: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
static HijrahDate readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
HijrahChronology chrono = (HijrahChronology) in.readObject();
int year = in.readInt();
int month = in.readByte();
int dayOfMonth = in.readByte();
return chrono.date(year, month, dayOfMonth);
}
示例6: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// LIST
_list = ( TLongArrayList ) in.readObject();
}
示例7: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// LIST
_list = ( TCharArrayList ) in.readObject();
}
示例8: 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();
}
示例9: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
int version = in.readByte();
// SUPER
super.readExternal( in );
// NUMBER OF ENTRIES
int size = in.readInt();
if ( version >= 1 ) {
// LOAD FACTOR
_loadFactor = in.readFloat();
// NO ENTRY VALUE
no_entry_value = in.readFloat();
//noinspection RedundantCast
if ( no_entry_value != ( float ) 0 ) {
Arrays.fill( _set, no_entry_value );
}
}
// ENTRIES
setUp( size );
while ( size-- > 0 ) {
float val = in.readFloat();
add( val );
}
}
示例10: readExternal
import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
int version = in.readByte();
// SUPER
super.readExternal( in );
// NUMBER OF ENTRIES
int size = in.readInt();
if ( version >= 1 ) {
// LOAD FACTOR
_loadFactor = in.readFloat();
// NO ENTRY VALUE
no_entry_value = in.readInt();
//noinspection RedundantCast
if ( no_entry_value != ( int ) 0 ) {
Arrays.fill( _set, no_entry_value );
}
}
// ENTRIES
setUp( size );
while ( size-- > 0 ) {
int val = in.readInt();
add( val );
}
}
示例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.readLong();
// NO_ENTRY_VALUE
no_entry_value = in.readFloat();
}
示例12: 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.readDouble();
}
示例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.readByte();
// NO_ENTRY_VALUE
no_entry_value = in.readChar();
}
示例14: 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.readFloat();
// NO_ENTRY_VALUE
no_entry_value = in.readFloat();
}
示例15: 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.readFloat();
// NO_ENTRY_VALUE
no_entry_value = in.readDouble();
}