C# Класс 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

Наследование: AbstractHessianInput
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddRef() публичный Метод

Adds an object reference.
public AddRef ( Object obj ) : int
obj Object
Результат int

CHessianInput() публичный Метод

Constructor
public CHessianInput ( Stream srInput ) : System
srInput Stream InputStream what have to read from
Результат System

CompleteCall() публичный Метод

Completes reading the call A successful completion will have a single value: z
public CompleteCall ( ) : void
Результат void

CompleteReply() публичный Метод

Completes reading the call A successful completion will have a single value: z
public CompleteReply ( ) : void
Результат void

CompleteValueReply() публичный Метод

Completes reading the call

A successful completion will have a single value: z

public CompleteValueReply ( ) : void
Результат void

GetTotalBytesRead() публичный Метод

public GetTotalBytesRead ( ) : int
Результат int

Init() публичный Метод

Initialization with the stream that will be read from
public Init ( Stream srInput ) : void
srInput Stream stream /// that will be read from
Результат void

IsEnd() публичный Метод

Returns true if the data has ended.
public IsEnd ( ) : bool
Результат bool

ReadBoolean() публичный Метод

Reads a boolean value T F
public ReadBoolean ( ) : bool
Результат bool

ReadByte() публичный Метод

Reads a byte from the stream.
public ReadByte ( ) : int
Результат int

ReadBytes() публичный Метод

Reads the byte array
public ReadBytes ( ) : byte[]
Результат byte[]

ReadBytes() публичный Метод

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
Результат int

ReadCall() публичный Метод

Starts reading the call c major minor
public ReadCall ( ) : int
Результат int

ReadDouble() публичный Метод

Reads a double. D b64 b56 b48 b40 b32 b24 b16 b8
public ReadDouble ( ) : double
Результат double

ReadEnd() публичный Метод

Read the end byte
public ReadEnd ( ) : void
Результат void

ReadFloat() публичный Метод

Reads a float * D b64 b56 b48 b40 b32 b24 b16 b8
public ReadFloat ( ) : float
Результат float

ReadHeader() публичный Метод

Reads a header, returning null if there are no headers. H b16 b8 value
public ReadHeader ( ) : String
Результат String

ReadInputStream() публичный Метод

Reads bytes based on an input stream.
public ReadInputStream ( ) : Stream
Результат Stream

ReadInt() публичный Метод

Reads an integer b32 b24 b16 b8
public ReadInt ( ) : int
Результат int

ReadLength() публичный Метод

Reads the length of a list.
public ReadLength ( ) : int
Результат int

ReadListEnd() публичный Метод

Read the end byte
public ReadListEnd ( ) : void
Результат void

ReadListStart() публичный Метод

Reads the start of a list
public ReadListStart ( ) : int
Результат int

ReadLong() публичный Метод

Reads a long L b64 b56 b48 b40 b32 b24 b16 b8
public ReadLong ( ) : long
Результат long

ReadMapEnd() публичный Метод

Reads the end byte.
public ReadMapEnd ( ) : void
Результат void

ReadMapStart() публичный Метод

Reads the start of a list.
public ReadMapStart ( ) : int
Результат int

ReadMethod() публичный Метод

Starts reading the call A successful completion will have a single value: m b16 b8 method
public ReadMethod ( ) : String
Результат String

ReadObject() публичный Метод

Reads an arbitrary object from the input stream.
public ReadObject ( ) : object
Результат object

ReadObject() публичный Метод

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.
Результат object

ReadRef() публичный Метод

Reads a reference.
public ReadRef ( ) : object
Результат object

ReadReply() публичный Метод

Reads a reply as an object.
public ReadReply ( Type expectedType ) : object
expectedType Type the expected class if the protocol doesn't supply it.
Результат object

ReadString() публичный Метод

Reads a string s b16 b8 non-final string chunk S b16 b8 final string chunk
public ReadString ( ) : string
Результат string

ReadType() публичный Метод

Reads an object type.
public ReadType ( ) : String
Результат String

ReadUTCDate() публичный Метод

Reads a date. T b64 b56 b48 b40 b32 b24 b16 b8
public ReadUTCDate ( ) : long
Результат long

StartCall() публичный Метод

Starts reading the call A successful completion will have a single value: c major minor m b16 b8 method
public StartCall ( ) : void
Результат void

StartReply() публичный Метод

Starts reading the reply A successful completion will have a single value: r
public StartReply ( ) : void
Результат void