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


C# biz.ritter.javapi.defaultReadObject方法代码示例

本文整理汇总了C#中biz.ritter.javapi.defaultReadObject方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.defaultReadObject方法的具体用法?C# biz.ritter.javapi.defaultReadObject怎么用?C# biz.ritter.javapi.defaultReadObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在biz.ritter.javapi的用法示例。


在下文中一共展示了biz.ritter.javapi.defaultReadObject方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
 }
开发者ID:gadfly,项目名称:nofs,代码行数:14,代码来源:org.apache.commons.collections.map.PredicatedMap.cs

示例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);
 }
开发者ID:gadfly,项目名称:nofs,代码行数:9,代码来源:org.apache.commons.collections.bidimap.DualTreeBidiMap.cs

示例3: readObject

 /*
  * For old versions of QName which didn't have a prefix field,
  * &lt;code&gt;ObjectInputStream.defaultReadObject()&lt;/code&gt; will initialize
  * the prefix to &lt;code&gt;null&lt;/code&gt; instead of the empty string. This
  * method fixes up the prefix field if it didn't exist in the serialized
  * object.
  */
 private void readObject(java.io.ObjectInputStream inJ)
 {
     //throws IOException, ClassNotFoundException {
     inJ.defaultReadObject();
     if (prefix == null)
     {
         prefix = XMLConstants.DEFAULT_NS_PREFIX;
     }
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:16,代码来源:QName.cs

示例4: readObject

 /**
  * Read the map in using a custom routine.
  */
 private void readObject(java.io.ObjectInputStream inJ)
 {
     //throws IOException, ClassNotFoundException {
     inJ.defaultReadObject();
     doReadObject(inJ);
 }
开发者ID:gadfly,项目名称:nofs,代码行数:9,代码来源:org.apache.commons.collections.map.IdentityMap.cs

示例5: readObject

 /**
  * Serialization helper to setup transient resource bundle instance.
  *
  * @param in
  *            the input stream to read the instance data from.
  * @throws IOException
  *             if an IO error occurs.
  * @throws ClassNotFoundException
  *             if a class is not found.
  */
 private void readObject(java.io.ObjectInputStream inJ)
 {
     //throws IOException,            ClassNotFoundException {
     inJ.defaultReadObject();
     if (resourceBundleName != null) {
     try {
         rb = ResourceBundle.getBundle(resourceBundleName);
     } catch (MissingResourceException e) {
         rb = null;
     }
     }
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:22,代码来源:Level.cs

示例6: readObject

 /**
  * Read the bag in using a custom routine.
  */
 private void readObject(java.io.ObjectInputStream inJ)
 {
     //throws IOException, ClassNotFoundException {
     inJ.defaultReadObject();
     base.doReadObject(new java.util.HashMap<Object, Object>(), inJ);
 }
开发者ID:gadfly,项目名称:nofs,代码行数:9,代码来源:org.apache.commons.collections.bag.HashBag.cs

示例7: 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);
 }
开发者ID:gadfly,项目名称:nofs,代码行数:20,代码来源:java.lang.StringBuilder.cs

示例8: readObject

 private void readObject(java.io.ObjectInputStream ois)
 {
     //throws IOException,
         //ClassNotFoundException {
     ois.defaultReadObject();
     this.isLengthActual = false;
     this.actualArrayLength = bits.Length;
     this.needClearJ = this.getActualArrayLength() != 0;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:9,代码来源:BitSet.cs

示例9: readObject

 /**
  * Read AffineTransform object from the input stream
  * @param stream - the input steam
  * @throws IOException - if there are I/O errors while reading from the input strem
  * @throws ClassNotFoundException - if class could not be found
  */
 private void readObject(java.io.ObjectInputStream stream)
 {
     //throws IOException, ClassNotFoundException {
     stream.defaultReadObject();
     type = TYPE_UNKNOWN;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:12,代码来源:java.awt.geom.AffineTransform.cs

示例10: 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;
            }
            }
        }
开发者ID:sailesh341,项目名称:JavApi,代码行数:32,代码来源:LogRecord.cs

示例11: 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);
 }
开发者ID:gadfly,项目名称:nofs,代码行数:10,代码来源:org.apache.commons.collections.bag.TreeBag.cs

示例12: readObject

 // throws IOException,
 /**
  * Checks name after default deserialization.
  */
 private void readObject(java.io.ObjectInputStream inJ)
 {
     //ClassNotFoundException {
     inJ.defaultReadObject();
     checkName(this.getName());
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:10,代码来源:BasicPermission.cs


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