예제 #1
0
        /// <summary>
        /// readObject is called to restore the state of the SignedObject from
        /// a stream.
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
        private void ReadObject(java.io.ObjectInputStream s)
        {
            java.io.ObjectInputStream.GetField fields = s.ReadFields();
            Content           = ((sbyte[])fields.Get("content", null)).clone();
            Signature_Renamed = ((sbyte[])fields.Get("signature", null)).clone();
            Thealgorithm      = (String)fields.Get("thealgorithm", null);
        }
예제 #2
0
        /// <summary>
        /// Reconstitutes the instance from a stream (that is, deserializes it).
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException, java.io.InvalidObjectException
        private void ReadObject(java.io.ObjectInputStream s)
        {
            // Note: This must be changed if any additional fields are defined
            Object a = s.ReadFields().Get("array", null);

            if (a == null || !a.GetType().IsArray)
            {
                throw new java.io.InvalidObjectException("Not array type");
            }
            if (a.GetType() != typeof(Object[]))
            {
                a = Arrays.CopyOf((Object[])a, Array.getLength(a), typeof(Object[]));
            }
            @unsafe.putObjectVolatile(this, ArrayFieldOffset, a);
        }
예제 #3
0
        /// <summary>
        /// readObject is called to restore the state of the StringBuffer from
        /// a stream.
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
        private void ReadObject(java.io.ObjectInputStream s)
        {
            java.io.ObjectInputStream.GetField fields = s.ReadFields();
            Value_Renamed = (char[])fields.Get("value", null);
            Count         = fields.Get("count", 0);
        }