本文整理汇总了C#中biz.ritter.javapi.readObject方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.readObject方法的具体用法?C# biz.ritter.javapi.readObject怎么用?C# biz.ritter.javapi.readObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类biz.ritter.javapi
的用法示例。
在下文中一共展示了biz.ritter.javapi.readObject方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: readObject
/**
* Read the map in using a custom routine.
*
* @param in the input stream
* @throws IOException
* @throws ClassNotFoundException
* @since Commons Collections 3.1
*/
private void readObject(java.io.ObjectInputStream inJ)
{
//throws IOException, ClassNotFoundException {
inJ.defaultReadObject();
map = (java.util.Map<Object, Object>)inJ.readObject();
}
示例2: readObject
private void readObject(java.io.ObjectInputStream inJ)
{
//throws IOException, ClassNotFoundException {
inJ.defaultReadObject();
maps[0] = new java.util.TreeMap<Object, Object>(comparatorJ);
maps[1] = new java.util.TreeMap<Object, Object>(comparatorJ);
java.util.Map<Object, Object> map = (java.util.Map<Object, Object>)inJ.readObject();
putAll(map);
}
示例3: readObject
/**
* Reads the state of a {@code StringBuilder} from the passed stream and
* restores it to this instance.
*
* @param in
* the stream to read the state from.
* @throws IOException
* if the stream throws it during the read.
* @throws ClassNotFoundException
* if the stream throws it during the read.
*/
private void readObject(java.io.ObjectInputStream inJ)
{
//throws IOException,
//ClassNotFoundException {
inJ.defaultReadObject();
int count = inJ.readInt();
char[] value = (char[]) inJ.readObject();
set(value, count);
}
示例4: readObject
/*
* Customized deserialization.
*/
private void readObject(java.io.ObjectInputStream inJ)
{
//throws IOException, ClassNotFoundException {
inJ.defaultReadObject();
byte major = inJ.readByte();
byte minor = inJ.readByte();
// only check MAJOR version
if (major != MAJOR) {
// logging.5=Different version - {0}.{1}
throw new java.io.IOException("Different version - "+ //$NON-NLS-1$
java.lang.Byte.valueOf(major)+"."+ java.lang.Byte.valueOf(minor));
}
int length = inJ.readInt();
if (length >= 0) {
parameters = new Object[length];
for (int i = 0; i < parameters.Length; i++) {
parameters[i] = inJ.readObject();
}
}
if (null != resourceBundleName) {
try {
resourceBundle = Logger.loadResourceBundle(resourceBundleName);
} catch (MissingResourceException e) {
// Cannot find the specified resource bundle
resourceBundle = null;
}
}
}
示例5: readObject
/**
* Read the bag in using a custom routine.
*/
private void readObject(java.io.ObjectInputStream inJ)
{
//throws IOException, ClassNotFoundException {
inJ.defaultReadObject();
java.util.Comparator<Object> comp = (java.util.Comparator<Object>)inJ.readObject();
base.doReadObject(new java.util.TreeMap<Object, Object>(comp), inJ);
}
示例6: readExternal
// Externalizable interface
//-------------------------------------------------------------------------
public override void readExternal(java.io.ObjectInput inJ)
{
// throws IOException, ClassNotFoundException {
maximumSize = inJ.readInt();
int size = inJ.readInt();
for (int i = 0; i < size; i++)
{
Object key = inJ.readObject();
Object value = inJ.readObject();
put(key, value);
}
}