C# Class burlapcsharp.io.CBurlapInput

Inheritance: AbstractBurlapInput
Mostra file Open project: timfel/csharp-hessian

Protected Properties

Property Type Description
m_intPeek int
m_sBuild StringBuilder
m_sEntityBuild StringBuilder
m_utcCalendar System.Globalization.Calendar

Public Methods

Method Description
AddRef ( Object obj ) : int

Adds a list/map reference.

CBurlapInput ( Stream srInput ) : System

Constructor

CompleteCall ( ) : void

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

  

CompleteReply ( ) : void

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

ExpectTag ( int expectTag ) : void
Init ( Stream srInput ) : void

Initialization with the stream that will be read from

IsEnd ( ) : bool

Returns true if this is the end of a list or a map.

ReadBoolean ( ) : bool

Reads a boolean value 0 1

ReadByte ( ) : int

Reads a byte from the stream.

ReadBytes ( ) : byte[]

Reads the byte array

ReadCall ( ) : int

Starts reading the call

A successful completion will have a single value:

  

ReadDouble ( ) : double

Reads a double. value

ReadEnd ( ) : void

Returns true if this is the end of a list or a map.

ReadFloat ( ) : float

Reads a float value

ReadHeader ( ) : String

Reads a header, returning null if there are no headers.

value

ReadInputStream ( ) : Stream
ReadInt ( ) : int

Reads an integer value

ReadLength ( ) : int

Reads the length value

ReadListEnd ( ) : void

Reads the end of the map

ReadListStart ( ) : int

Reads the start of a list.

ReadLocalDate ( ) : long

Reads a date. ISO-8609 date

ReadLong ( ) : long

Reads a long value

ReadMapEnd ( ) : void

Reads the end of the map

ReadMapStart ( ) : int

Reads the start of a map.

ReadMethod ( ) : String

Reads the method

 method 

ReadNode ( ) : XmlNode

Reads an XML node. xml string

ReadNull ( ) : void

Reads a null

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 remote object.

ReadRemote ( ) : object

Reads a reference.

ReadReply ( Type expectedType ) : object

Reads a reply as an object.

ReadShort ( ) : int

Reads a short.

ReadString ( ) : string

Reads a string value&

ReadType ( ) : String

Parses a type from the stream. type

ReadUTCDate ( ) : long

Reads a date. ISO-8609 date

SetRef ( int i, Object obj ) : void

Adds a list/map reference.

StartCall ( ) : void

Starts reading the call

  method 

StartReply ( ) : void

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

Protected Methods

Method Description
ExpectedChar ( String expect, int ch ) : CBurlapException
ExpectedTag ( System expect, int tag ) : CBurlapException
IsWhitespace ( int ch ) : bool
ParseBytes ( System bos ) : MemoryStream

Parses a byte array.

ParseBytes ( ) : byte[]

Parses a byte array.

ParseDate ( ) : long

Parses a date value from the stream.

ParseDate ( System calendar ) : long

Parses a date value from the stream.

ParseString ( ) : String
ParseString ( StringBuilder sBuild ) : StringBuilder
ParseTag ( ) : int
SkipWhitespace ( ) : int
TagName ( int tag ) : String

Private Methods

Method Description
CBurlapInput ( ) : System
IsTagChar ( int ch ) : bool

Checks the valid character

ParseDouble ( ) : double
ParseInt ( ) : int
ParseLong ( ) : long
ParseXML ( ) : XmlNode
Read ( ) : int

Reads the next byte from the inputStream

ReadChar ( ) : int

Reads a character from the underlying stream.

ReadFault ( ) : Hashtable

Reads a fault.

Method Details

AddRef() public method

Adds a list/map reference.
public AddRef ( Object obj ) : int
obj Object
return int

CBurlapInput() public method

Constructor
public CBurlapInput ( 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:
  
public CompleteCall ( ) : void
return void

CompleteReply() public method

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

ExpectTag() public method

public ExpectTag ( int expectTag ) : void
expectTag int
return void

ExpectedChar() protected method

protected ExpectedChar ( String expect, int ch ) : CBurlapException
expect String
ch int
return CBurlapException

ExpectedTag() protected method

protected ExpectedTag ( System expect, int tag ) : CBurlapException
expect System
tag int
return CBurlapException

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 this is the end of a list or a map.
public IsEnd ( ) : bool
return bool

IsWhitespace() protected method

protected IsWhitespace ( int ch ) : bool
ch int
return bool

ParseBytes() protected method

Parses a byte array.
protected ParseBytes ( System bos ) : MemoryStream
bos System
return System.IO.MemoryStream

ParseBytes() protected method

Parses a byte array.
protected ParseBytes ( ) : byte[]
return byte[]

ParseDate() protected method

Parses a date value from the stream.
protected ParseDate ( ) : long
return long

ParseDate() protected method

Parses a date value from the stream.
protected ParseDate ( System calendar ) : long
calendar System
return long

ParseString() protected method

protected ParseString ( ) : String
return String

ParseString() protected method

protected ParseString ( StringBuilder sBuild ) : StringBuilder
sBuild StringBuilder
return StringBuilder

ParseTag() protected method

protected ParseTag ( ) : int
return int

ReadBoolean() public method

Reads a boolean value 0 1
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[]

ReadCall() public method

Starts reading the call

A successful completion will have a single value:

  
public ReadCall ( ) : int
return int

ReadDouble() public method

Reads a double. value
public ReadDouble ( ) : double
return double

ReadEnd() public method

Returns true if this is the end of a list or a map.
public ReadEnd ( ) : void
return void

ReadFloat() public method

Reads a float value
public ReadFloat ( ) : float
return float

ReadHeader() public method

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

ReadInputStream() public method

public ReadInputStream ( ) : Stream
return Stream

ReadInt() public method

Reads an integer value
public ReadInt ( ) : int
return int

ReadLength() public method

Reads the length value
public ReadLength ( ) : int
return int

ReadListEnd() public method

Reads the end of the map
public ReadListEnd ( ) : void
return void

ReadListStart() public method

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

ReadLocalDate() public method

Reads a date. ISO-8609 date
public ReadLocalDate ( ) : long
return long

ReadLong() public method

Reads a long value
public ReadLong ( ) : long
return long

ReadMapEnd() public method

Reads the end of the map
public ReadMapEnd ( ) : void
return void

ReadMapStart() public method

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

ReadMethod() public method

Reads the method
 method 
public ReadMethod ( ) : String
return String

ReadNode() public method

Reads an XML node. xml string
public ReadNode ( ) : XmlNode
return System.Xml.XmlNode

ReadNull() public method

Reads a null
public ReadNull ( ) : void
return void

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 System.Type the expected class if the protocol doesn't supply it.
return object

ReadRef() public method

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

ReadRemote() public method

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

ReadReply() public method

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

ReadShort() public method

Reads a short.
public ReadShort ( ) : int
return int

ReadString() public method

Reads a string value&
public ReadString ( ) : string
return string

ReadType() public method

Parses a type from the stream. type
public ReadType ( ) : String
return String

ReadUTCDate() public method

Reads a date. ISO-8609 date
public ReadUTCDate ( ) : long
return long

SetRef() public method

Adds a list/map reference.
public SetRef ( int i, Object obj ) : void
i int
obj Object
return void

SkipWhitespace() protected method

protected SkipWhitespace ( ) : int
return int

StartCall() public method

Starts reading the call
  method 
public StartCall ( ) : void
return void

StartReply() public method

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

TagName() protected static method

protected static TagName ( int tag ) : String
tag int
return String

Property Details

m_intPeek protected_oe property

a peek character
protected int m_intPeek
return int

m_sBuild protected_oe property

protected StringBuilder m_sBuild
return StringBuilder

m_sEntityBuild protected_oe property

protected StringBuilder m_sEntityBuild
return StringBuilder

m_utcCalendar protected_oe property

protected System.Globalization.Calendar m_utcCalendar
return System.Globalization.Calendar