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
Afficher le fichier Open project: timfel/csharp-hessian Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Adds an object reference.
public AddRef ( Object obj ) : int
obj Object
Résultat int

CHessianInput() public méthode

Constructor
public CHessianInput ( Stream srInput ) : System
srInput Stream InputStream what have to read from
Résultat System

CompleteCall() public méthode

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

CompleteReply() public méthode

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

CompleteValueReply() public méthode

Completes reading the call

A successful completion will have a single value: z

public CompleteValueReply ( ) : void
Résultat void

GetTotalBytesRead() public méthode

public GetTotalBytesRead ( ) : int
Résultat int

Init() public méthode

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

IsEnd() public méthode

Returns true if the data has ended.
public IsEnd ( ) : bool
Résultat bool

ReadBoolean() public méthode

Reads a boolean value T F
public ReadBoolean ( ) : bool
Résultat bool

ReadByte() public méthode

Reads a byte from the stream.
public ReadByte ( ) : int
Résultat int

ReadBytes() public méthode

Reads the byte array
public ReadBytes ( ) : byte[]
Résultat byte[]

ReadBytes() public méthode

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
Résultat int

ReadCall() public méthode

Starts reading the call c major minor
public ReadCall ( ) : int
Résultat int

ReadDouble() public méthode

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

ReadEnd() public méthode

Read the end byte
public ReadEnd ( ) : void
Résultat void

ReadFloat() public méthode

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

ReadHeader() public méthode

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

ReadInputStream() public méthode

Reads bytes based on an input stream.
public ReadInputStream ( ) : Stream
Résultat Stream

ReadInt() public méthode

Reads an integer b32 b24 b16 b8
public ReadInt ( ) : int
Résultat int

ReadLength() public méthode

Reads the length of a list.
public ReadLength ( ) : int
Résultat int

ReadListEnd() public méthode

Read the end byte
public ReadListEnd ( ) : void
Résultat void

ReadListStart() public méthode

Reads the start of a list
public ReadListStart ( ) : int
Résultat int

ReadLong() public méthode

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

ReadMapEnd() public méthode

Reads the end byte.
public ReadMapEnd ( ) : void
Résultat void

ReadMapStart() public méthode

Reads the start of a list.
public ReadMapStart ( ) : int
Résultat int

ReadMethod() public méthode

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

ReadObject() public méthode

Reads an arbitrary object from the input stream.
public ReadObject ( ) : object
Résultat object

ReadObject() public méthode

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.
Résultat object

ReadRef() public méthode

Reads a reference.
public ReadRef ( ) : object
Résultat object

ReadReply() public méthode

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

ReadString() public méthode

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

ReadType() public méthode

Reads an object type.
public ReadType ( ) : String
Résultat String

ReadUTCDate() public méthode

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

StartCall() public méthode

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

StartReply() public méthode

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