C# Class hessiancsharp.io.CHessianInput

Input stream for Hessian requests.

HessianInput is unbuffered, so any client needs to provide its own buffering. InputStream is = ...; // from http connection HessianInput in = new HessianInput(is); String value; in.startReply(); // read reply header value = in.readString(); // read string value in.completeReply(); // read reply footer

Inheritance: AbstractHessianInput
Mostra file Open project: timfel/csharp-hessian Class Usage Examples

Public Methods

Method Description
AddRef ( Object obj ) : int

Adds an object reference.

CHessianInput ( Stream srInput ) : System

Constructor

CompleteCall ( ) : void

Completes reading the call A successful completion will have a single value: z

CompleteReply ( ) : void

Completes reading the call A successful completion will have a single value: z

CompleteValueReply ( ) : void

Completes reading the call

A successful completion will have a single value: z

GetTotalBytesRead ( ) : int
Init ( Stream srInput ) : void

Initialization with the stream that will be read from

IsEnd ( ) : bool

Returns true if the data has ended.

ReadBoolean ( ) : bool

Reads a boolean value T F

ReadByte ( ) : int

Reads a byte from the stream.

ReadBytes ( ) : byte[]

Reads the byte array

ReadBytes ( sbyte arrBuffer, int intOffset, int intLength ) : int

Reads a byte array from the stream.

ReadCall ( ) : int

Starts reading the call c major minor

ReadDouble ( ) : double

Reads a double. D b64 b56 b48 b40 b32 b24 b16 b8

ReadEnd ( ) : void

Read the end byte

ReadFloat ( ) : float

Reads a float * D b64 b56 b48 b40 b32 b24 b16 b8

ReadHeader ( ) : String

Reads a header, returning null if there are no headers. H b16 b8 value

ReadInputStream ( ) : Stream

Reads bytes based on an input stream.

ReadInt ( ) : int

Reads an integer b32 b24 b16 b8

ReadLength ( ) : int

Reads the length of a list.

ReadListEnd ( ) : void

Read the end byte

ReadListStart ( ) : int

Reads the start of a list

ReadLong ( ) : long

Reads a long L b64 b56 b48 b40 b32 b24 b16 b8

ReadMapEnd ( ) : void

Reads the end byte.

ReadMapStart ( ) : int

Reads the start of a list.

ReadMethod ( ) : String

Starts reading the call A successful completion will have a single value: m b16 b8 method

ReadObject ( ) : object

Reads an arbitrary object from the input stream.

ReadObject ( Type expectedType ) : object

Reads an arbitrary object from the input stream.

ReadRef ( ) : object

Reads a reference.

ReadReply ( Type expectedType ) : object

Reads a reply as an object.

ReadString ( ) : string

Reads a string s b16 b8 non-final string chunk S b16 b8 final string chunk

ReadType ( ) : String

Reads an object type.

ReadUTCDate ( ) : long

Reads a date. T b64 b56 b48 b40 b32 b24 b16 b8

StartCall ( ) : void

Starts reading the call A successful completion will have a single value: c major minor m b16 b8 method

StartReply ( ) : void

Starts reading the reply A successful completion will have a single value: r

Private Methods

Method Description
GetDeserializer ( Type expType ) : hessiancsharp.io.AbstractDeserializer
GetObjectDeserializer ( string strType ) : hessiancsharp.io.AbstractDeserializer
LoadString ( ) : string
ParseByte ( ) : int

Reads a byte from the underlying stream.

ParseChar ( ) : int

Reads a character from the underlying stream.

ParseDouble ( ) : double

Parses a 64-bit double value from the stream. b64 b56 b48 b40 b32 b24 b16 b8

ParseInt ( ) : int

Parses a 32-bit integer value from the stream. b32 b24 b16 b8

ParseLong ( ) : long

Parses a 64-bit long value from the stream. b64 b56 b48 b40 b32 b24 b16 b8

ParseUTF8Char ( ) : int

Reads a single UTF8 character.

PrepareFault ( ) : Exception

Prepares the fault.

Read ( ) : int

Reads the next byte from the inputStream

Read ( byte buffer, int offset, int length ) : int

Reads bytes from the underlying stream.

ReadFault ( ) : Object>.Dictionary

Reads a fault.

parseXML ( ) : System.Xml.XmlNode

Reads string from stream and builds Xml - Node

Method Details

AddRef() public method

Adds an object reference.
public AddRef ( Object obj ) : int
obj Object
return int

CHessianInput() public method

Constructor
public CHessianInput ( Stream srInput ) : System
srInput Stream InputStream what have to read from
return System

CompleteCall() public method

Completes reading the call A successful completion will have a single value: z
public CompleteCall ( ) : void
return void

CompleteReply() public method

Completes reading the call A successful completion will have a single value: z
public CompleteReply ( ) : void
return void

CompleteValueReply() public method

Completes reading the call

A successful completion will have a single value: z

public CompleteValueReply ( ) : void
return void

GetTotalBytesRead() public method

public GetTotalBytesRead ( ) : int
return int

Init() public method

Initialization with the stream that will be read from
public Init ( Stream srInput ) : void
srInput Stream stream /// that will be read from
return void

IsEnd() public method

Returns true if the data has ended.
public IsEnd ( ) : bool
return bool

ReadBoolean() public method

Reads a boolean value T F
public ReadBoolean ( ) : bool
return bool

ReadByte() public method

Reads a byte from the stream.
public ReadByte ( ) : int
return int

ReadBytes() public method

Reads the byte array
public ReadBytes ( ) : byte[]
return byte[]

ReadBytes() public method

Reads a byte array from the stream.
public ReadBytes ( sbyte arrBuffer, int intOffset, int intLength ) : int
arrBuffer sbyte Buffer for read
intOffset int Offset
intLength int Length
return int

ReadCall() public method

Starts reading the call c major minor
public ReadCall ( ) : int
return int

ReadDouble() public method

Reads a double. D b64 b56 b48 b40 b32 b24 b16 b8
public ReadDouble ( ) : double
return double

ReadEnd() public method

Read the end byte
public ReadEnd ( ) : void
return void

ReadFloat() public method

Reads a float * D b64 b56 b48 b40 b32 b24 b16 b8
public ReadFloat ( ) : float
return float

ReadHeader() public method

Reads a header, returning null if there are no headers. H b16 b8 value
public ReadHeader ( ) : String
return String

ReadInputStream() public method

Reads bytes based on an input stream.
public ReadInputStream ( ) : Stream
return Stream

ReadInt() public method

Reads an integer b32 b24 b16 b8
public ReadInt ( ) : int
return int

ReadLength() public method

Reads the length of a list.
public ReadLength ( ) : int
return int

ReadListEnd() public method

Read the end byte
public ReadListEnd ( ) : void
return void

ReadListStart() public method

Reads the start of a list
public ReadListStart ( ) : int
return int

ReadLong() public method

Reads a long L b64 b56 b48 b40 b32 b24 b16 b8
public ReadLong ( ) : long
return long

ReadMapEnd() public method

Reads the end byte.
public ReadMapEnd ( ) : void
return void

ReadMapStart() public method

Reads the start of a list.
public ReadMapStart ( ) : int
return int

ReadMethod() public method

Starts reading the call A successful completion will have a single value: m b16 b8 method
public ReadMethod ( ) : String
return String

ReadObject() public method

Reads an arbitrary object from the input stream.
public ReadObject ( ) : object
return object

ReadObject() public method

Reads an arbitrary object from the input stream.
public ReadObject ( Type expectedType ) : object
expectedType Type the expected class if the protocol doesn't supply it.
return object

ReadRef() public method

Reads a reference.
public ReadRef ( ) : object
return object

ReadReply() public method

Reads a reply as an object.
public ReadReply ( Type expectedType ) : object
expectedType Type the expected class if the protocol doesn't supply it.
return object

ReadString() public method

Reads a string s b16 b8 non-final string chunk S b16 b8 final string chunk
public ReadString ( ) : string
return string

ReadType() public method

Reads an object type.
public ReadType ( ) : String
return String

ReadUTCDate() public method

Reads a date. T b64 b56 b48 b40 b32 b24 b16 b8
public ReadUTCDate ( ) : long
return long

StartCall() public method

Starts reading the call A successful completion will have a single value: c major minor m b16 b8 method
public StartCall ( ) : void
return void

StartReply() public method

Starts reading the reply A successful completion will have a single value: r
public StartReply ( ) : void
return void