ReadRef() public abstract method

Reads a reference.
public abstract ReadRef ( ) : object
return object
コード例 #1
0
        /// <summary>
        /// Reads object
        /// </summary>
        /// <param name="abstractHessianInput">Instance of AbstractHessianInput</param>
        /// <returns>Object that was read</returns>
        public override object ReadObject(AbstractHessianInput abstractHessianInput)
        {
            int intCode = abstractHessianInput.ReadListStart();

            switch (intCode)
            {
            case CHessianInput.PROT_NULL:
                return(null);

            case CHessianInput.PROT_REF_TYPE:
                return(abstractHessianInput.ReadRef());
            }
            int intLength = abstractHessianInput.ReadLength();

            return(ReadList(abstractHessianInput, intLength));
        }
コード例 #2
0
        /// <summary>
        /// Reads map from input
        /// </summary>
        /// <param name="abstractHessianInput">Input stream</param>
        /// <returns>Read map or null</returns>
        public override object ReadObject(AbstractHessianInput abstractHessianInput)
        {
            //Read map start
            int code = abstractHessianInput.ReadMapStart();

            switch (code)
            {
            case CHessianInput.PROT_NULL:
                return(null);

            case CHessianInput.PROT_REF_TYPE:
                return(abstractHessianInput.ReadRef());

            case 'r':
                throw new CHessianException("remote type is not implemented!");
            }
            return(ReadMap(abstractHessianInput));
        }
コード例 #3
0
 /// <summary>
 /// Reads enum from input 
 /// </summary>
 /// <param name="abstractHessianInput">Input stream</param>
 /// <returns>Read map or null</returns>
 public override object ReadObject(AbstractHessianInput abstractHessianInput)
 {
     //Read map start
     int code = abstractHessianInput.ReadMapStart();
     switch (code)
     {
         case CHessianInput.PROT_NULL:
             return null;
         case CHessianInput.PROT_REF_TYPE:
             return abstractHessianInput.ReadRef();
         case 'r':
             throw new CHessianException("remote type is not implemented!");
     }
     return ReadMap(abstractHessianInput);
 }
コード例 #4
0
 /// <summary>
 /// Reads object
 /// </summary>
 /// <param name="abstractHessianInput">Instance of AbstractHessianInput</param>
 /// <returns>Object that was read</returns>
 public override object ReadObject(AbstractHessianInput abstractHessianInput)
 {
     int intCode = abstractHessianInput.ReadListStart();
     switch (intCode)
     {
         case CHessianInput.PROT_NULL:
             return null;
         case CHessianInput.PROT_REF_TYPE:
             return abstractHessianInput.ReadRef();
     }
     int intLength = abstractHessianInput.ReadLength();
     return ReadList(abstractHessianInput, intLength);
 }