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
파일 보기 프로젝트 열기: timfel/csharp-hessian 1 사용 예제들

공개 메소드들

메소드 설명
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