C# Class hessiancsharp.io.AbstractHessianOutput

Parent of the HessianOutput class. Declares write operations (access methods) to an OutputStream
Inheritance: CHessianProtocolConstants
Mostra file Open project: timfel/csharp-hessian Class Usage Examples

Protected Properties

Property Type Description
m_serializerFactory CSerializerFactory

Public Methods

Method Description
AddRef ( object objReference ) : bool

Adds an object to the reference list. If the object already exists, writes the reference, otherwise, the caller is responsible for the serialization R b32 b24 b16 b8

CompleteCall ( ) : void

Writes the method call z

CompleteReply ( ) : void

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

Init ( Stream stream ) : void

Initialize the output with a new underlying stream

RemoveRef ( object objReference ) : bool

Removes a reference

ReplaceRef ( object objOldReference, object objNewReference ) : bool

Replaces a reference from one object to another

StartCall ( string strMethod ) : void

Writes the method call:

StartReply ( ) : void
WriteBoolean ( bool blnValue ) : void

Writes a boolean value to the stream. The boolean will be written with the following syntax: T F

WriteByteBufferEnd ( byte arrbuffer, int intOffset, int intLength ) : void

Writes the last chunk of a byte buffer to the stream b b16 b18 bytes

WriteByteBufferPart ( byte arrBuffer, int intOffset, int intLength ) : void

Writes a part of the byte buffer to the stream b b16 b18 bytes

WriteBytes ( byte arrBuffer ) : void

Writes a byte array to the stream. The array will be written with the following syntax: B b16 b18 bytes

WriteBytes ( byte arrBuffer, int intOffset, int intLength ) : void

Writes a byte array to the stream. The array will be written with the following syntax: B b16 b18 bytes

WriteDouble ( double dblValue ) : void

Writes a double value to the stream. The double will be written with the following syntax: D b64 b56 b48 b40 b32 b24 b16 b8

WriteFault ( string strCode, string strMessage, object objDetail ) : void

Writes a fault. The fault will be written as a descriptive string followed by an object: f <string>code <string>the fault code <string>message <string>the fault mesage <string>detail mt\x00\xnnException ... z z

WriteInt ( int intValue ) : void

Writes an integer value to the stream. The integer will be written with the following syntax: I b32 b24 b16 b8

WriteListBegin ( int intLength, string strType ) : void

Writes the list header to the stream. List writers will call writeListBegin followed by the list contents and then call writeListEnd V t b16 b8 type l b32 b24 b16 b8

WriteListEnd ( ) : void

Writes the tail of the list to the stream

WriteLong ( long lngValue ) : void

Writes a long value to the stream. The long will be written with the following syntax: L b64 b56 b48 b40 b32 b24 b16 b8

WriteMapBegin ( string strType ) : void

Writes the map header to the stream. Map writers will call writeMapBegin followed by the map contents and then call writeMapEnd Mt b16 b8 type ( )z

WriteMapEnd ( ) : void

Writes the tail of the map to the stream

WriteNull ( ) : void

Writes a null value to the stream. The null will be written with the following syntax N

WriteObject ( object obj ) : void

Writes a generic object to the output stream

WriteRef ( int intValue ) : void

Writes a reference R b32 b24 b16 b8

WriteRemote ( string strType, string strUrl ) : void

Writes a remote object reference to the stream. The type is the type of the remote interface 'r' 't' b16 b8 type url

WriteString ( String strValue ) : void

Writes a string value to the stream using UTF-8 encoding. The string will be written with the following syntax: S b16 b8 string-value

WriteString ( char arrBuffer, int intOffset, int intLength ) : void

Writes a string value to the stream using UTF-8 encoding. The string will be written with the following syntax: S b16 b8 string-value

WriteUTCDate ( long time ) : void

Writes a date to the stream T b64 b56 b48 b40 b32 b24 b16 b8

Method Details

AddRef() public abstract method

Adds an object to the reference list. If the object already exists, writes the reference, otherwise, the caller is responsible for the serialization R b32 b24 b16 b8
public abstract AddRef ( object objReference ) : bool
objReference object the object to add as a reference
return bool

CompleteCall() public abstract method

Writes the method call z
public abstract CompleteCall ( ) : void
return void

CompleteReply() public abstract method

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

Init() public abstract method

Initialize the output with a new underlying stream
public abstract Init ( Stream stream ) : void
stream Stream Stream - Instance for output
return void

RemoveRef() public abstract method

Removes a reference
public abstract RemoveRef ( object objReference ) : bool
objReference object Object reference to remove
return bool

ReplaceRef() public abstract method

Replaces a reference from one object to another
public abstract ReplaceRef ( object objOldReference, object objNewReference ) : bool
objOldReference object Old object reference
objNewReference object New object reference
return bool

StartCall() public abstract method

Writes the method call:
public abstract StartCall ( string strMethod ) : void
strMethod string the method name to call
return void

StartReply() public abstract method

public abstract StartReply ( ) : void
return void

WriteBoolean() public abstract method

Writes a boolean value to the stream. The boolean will be written with the following syntax: T F
public abstract WriteBoolean ( bool blnValue ) : void
blnValue bool the boolean value to write
return void

WriteByteBufferEnd() public abstract method

Writes the last chunk of a byte buffer to the stream b b16 b18 bytes
public abstract WriteByteBufferEnd ( byte arrbuffer, int intOffset, int intLength ) : void
arrbuffer byte Array with bytes to write
intOffset int Vslue offset
intLength int Value length
return void

WriteByteBufferPart() public abstract method

Writes a part of the byte buffer to the stream b b16 b18 bytes
public abstract WriteByteBufferPart ( byte arrBuffer, int intOffset, int intLength ) : void
arrBuffer byte Array with bytes to write
intOffset int Vslue offset
intLength int Value length
return void

WriteBytes() public abstract method

Writes a byte array to the stream. The array will be written with the following syntax: B b16 b18 bytes
public abstract WriteBytes ( byte arrBuffer ) : void
arrBuffer byte Array with bytes to write
return void

WriteBytes() public abstract method

Writes a byte array to the stream. The array will be written with the following syntax: B b16 b18 bytes
public abstract WriteBytes ( byte arrBuffer, int intOffset, int intLength ) : void
arrBuffer byte Array with bytes to write
intOffset int Vslue offset
intLength int Value length
return void

WriteDouble() public abstract method

Writes a double value to the stream. The double will be written with the following syntax: D b64 b56 b48 b40 b32 b24 b16 b8
public abstract WriteDouble ( double dblValue ) : void
dblValue double the double value to write
return void

WriteFault() public abstract method

Writes a fault. The fault will be written as a descriptive string followed by an object: f <string>code <string>the fault code <string>message <string>the fault mesage <string>detail mt\x00\xnnException ... z z
public abstract WriteFault ( string strCode, string strMessage, object objDetail ) : void
strCode string code the fault code
strMessage string fault message
objDetail object fault detail
return void

WriteInt() public abstract method

Writes an integer value to the stream. The integer will be written with the following syntax: I b32 b24 b16 b8
public abstract WriteInt ( int intValue ) : void
intValue int the integer value to write
return void

WriteListBegin() public abstract method

Writes the list header to the stream. List writers will call writeListBegin followed by the list contents and then call writeListEnd V t b16 b8 type l b32 b24 b16 b8
public abstract WriteListBegin ( int intLength, string strType ) : void
intLength int Length of array
strType string Type name of the array
return void

WriteListEnd() public abstract method

Writes the tail of the list to the stream
public abstract WriteListEnd ( ) : void
return void

WriteLong() public abstract method

Writes a long value to the stream. The long will be written with the following syntax: L b64 b56 b48 b40 b32 b24 b16 b8
public abstract WriteLong ( long lngValue ) : void
lngValue long the long value to write
return void

WriteMapBegin() public abstract method

Writes the map header to the stream. Map writers will call writeMapBegin followed by the map contents and then call writeMapEnd Mt b16 b8 type ( )z
public abstract WriteMapBegin ( string strType ) : void
strType string Type of map
return void

WriteMapEnd() public abstract method

Writes the tail of the map to the stream
public abstract WriteMapEnd ( ) : void
return void

WriteNull() public abstract method

Writes a null value to the stream. The null will be written with the following syntax N
public abstract WriteNull ( ) : void
return void

WriteObject() public abstract method

Writes a generic object to the output stream
public abstract WriteObject ( object obj ) : void
obj object Object to write
return void

WriteRef() public abstract method

Writes a reference R b32 b24 b16 b8
public abstract WriteRef ( int intValue ) : void
intValue int he integer value to write
return void

WriteRemote() public abstract method

Writes a remote object reference to the stream. The type is the type of the remote interface 'r' 't' b16 b8 type url
public abstract WriteRemote ( string strType, string strUrl ) : void
strType string type of remote object
strUrl string URL of remote object
return void

WriteString() public abstract method

Writes a string value to the stream using UTF-8 encoding. The string will be written with the following syntax: S b16 b8 string-value
public abstract WriteString ( String strValue ) : void
strValue String the string value to write
return void

WriteString() public abstract method

Writes a string value to the stream using UTF-8 encoding. The string will be written with the following syntax: S b16 b8 string-value
public abstract WriteString ( char arrBuffer, int intOffset, int intLength ) : void
arrBuffer char the value to write as string value
intOffset int value offset
intLength int value length
return void

WriteUTCDate() public abstract method

Writes a date to the stream T b64 b56 b48 b40 b32 b24 b16 b8
public abstract WriteUTCDate ( long time ) : void
time long the date in milliseconds from the epoch in UTC
return void

Property Details

m_serializerFactory protected_oe property

protected CSerializerFactory m_serializerFactory
return CSerializerFactory