C# Class burlapcsharp.io.CBurlapOutput

Inheritance: AbstractBurlapOutput
Datei anzeigen Open project: timfel/csharp-hessian Class Usage Examples

Protected Properties

Property Type Description
m_srOutput Stream

Public Methods

Method Description
AddRef ( object objReference ) : bool

If the object has already been written, just write its ref.

CBurlapOutput ( Stream srOutput ) : System

Constructor

Call ( string strMethod, object args ) : void

Writes a complete method call.

CompleteCall ( ) : void

Completes.

  

CompleteReply ( ) : void

Completes reading the reply

A successful completion will have a single value:

  

Init ( Stream srOutput ) : void

Initializes the output

PrintString ( String v ) : void

Prints a string to the stream, encoded as UTF-8

PrintString ( System v, int offset, int length ) : void

Prints a string to the stream, encoded as UTF-8

PrintString ( char v, int offset, int length ) : void

Prints a string to the stream, encoded as UTF-8

RemoveRef ( object objReference ) : bool

Removes a reference

ReplaceRef ( object objOldReference, object objNewReference ) : bool

Replaces a reference from one object to another

StartCall ( ) : void

Starts the method call. Clients would use startCall instead of call if they wanted finer control over writing the arguments, or needed to write headers.

 method-name 

StartCall ( String method ) : void

Starts the method call. Clients would use startCall instead of call if they wanted finer control over writing the arguments, or needed to write headers.

  method-name 

StartReply ( ) : void

Starts the reply

A successful completion will have a single value:

WriteBoolean ( bool bValue ) : void

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

 0 1 

WriteByteBufferEnd ( byte buffer, int offset, int length ) : void

Writes a byte buffer to the stream.

 b b16 b18 bytes 

WriteByteBufferPart ( byte buffer, int offset, int length ) : void

Writes a byte buffer to the stream.

 b b16 b18 bytes 

WriteBytes ( byte buffer ) : void

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

 bytes 
If the value is null, it will be written as
  

WriteBytes ( byte buffer, int offset, int length ) : void

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

 bytes 
If the value is null, it will be written as
  

WriteDouble ( double dValue ) : void

Writes a double value to the stream. The double will be written with the following syntax:

 value 

WriteFault ( System code, System message, System detail ) : void

Writes a fault. The fault will be written as a descriptive string followed by an object:

  code the fault code message the fault mesage detail t\x00\xnnjavax.ejb.FinderException ...   

WriteHeader ( String name ) : void

Writes a header name. The header value must immediately follow.

 
foo
value<;/int>

WriteInt ( int intValue ) : void

Writes an integer value to the stream. The integer will be written with the following syntax:

 int value 

WriteListBegin ( int length, String type ) : void

Writes the list header to the stream. List writers will call writeListBegin followed by the list contents and then call writeListEnd.

  ArrayList 3 1 2 3  

WriteListEnd ( ) : void

Writes the tail of the list to the stream.

WriteLong ( long lValue ) : void

Writes a long value to the stream. The long will be written with the following syntax:

 int value 

WriteMapBegin ( System type ) : void

Writes the map header to the stream. Map writers will call writeMapBegin followed by the map contents and then call writeMapEnd.

  type ( )*  

WriteMapEnd ( ) : void

Writes the tail of the map to the stream.

WriteMethod ( String method ) : void

Writes the method for a call.

 value 

WriteNull ( ) : void

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

  

WriteObject ( object obj ) : void

Writes any object to the output stream.

WriteRef ( int intValue ) : void

Writes a reference.

 int 

WriteRemote ( String type, String url ) : void

Writes a remote object reference to the stream. The type is the type of the remote interface.

  test.account.Account http://caucho.com/foo;ejbid=bar  

WriteString ( String sValue ) : void

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

 string-value 
If the value is null, it will be written as
  

WriteString ( char buffer, int offset, int length ) : 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 
If the value is null, it will be written as
 N 

WriteUTCDate ( long time ) : void

Writes a date to the stream.

 iso8901 

printDate ( System.DateTime dateTime ) : void

Prints a date.

Protected Methods

Method Description
Print ( String str ) : void

Prints a string as ascii to the stream. Used for tags, etc. that are known to the ascii.

Print ( char v ) : void

Prints a char to the stream.

Print ( double v ) : void

Prints a double to the stream.

Print ( int v ) : void

Prints an integer to the stream.

Print ( long v ) : void

Prints a long to the stream.

Private Methods

Method Description
Encode ( int d ) : char

Encodes a digit

Method Details

AddRef() public method

If the object has already been written, just write its ref.
public AddRef ( object objReference ) : bool
objReference object the object to add as a reference
return bool

CBurlapOutput() public method

Constructor
public CBurlapOutput ( Stream srOutput ) : System
srOutput Stream Output stream
return System

Call() public method

Writes a complete method call.
public Call ( string strMethod, object args ) : void
strMethod string Method name
args object Method args
return void

CompleteCall() public method

Completes.
  
public CompleteCall ( ) : void
return void

CompleteReply() public method

Completes reading the reply

A successful completion will have a single value:

  
public CompleteReply ( ) : void
return void

Init() public method

Initializes the output
public Init ( Stream srOutput ) : void
srOutput Stream Output stream
return void

Print() protected method

Prints a string as ascii to the stream. Used for tags, etc. that are known to the ascii.
protected Print ( String str ) : void
str String the ascii string to print. ///
return void

Print() protected method

Prints a char to the stream.
protected Print ( char v ) : void
v char the char to print. ///
return void

Print() protected method

Prints a double to the stream.
protected Print ( double v ) : void
v double the double to print. ///
return void

Print() protected method

Prints an integer to the stream.
protected Print ( int v ) : void
v int the integer to print. ///
return void

Print() protected method

Prints a long to the stream.
protected Print ( long v ) : void
v long the long to print. ///
return void

PrintString() public method

Prints a string to the stream, encoded as UTF-8
public PrintString ( String v ) : void
v String the string to print. ///
return void

PrintString() public method

Prints a string to the stream, encoded as UTF-8
public PrintString ( System v, int offset, int length ) : void
v System the string to print. ///
offset int
length int
return void

PrintString() public method

Prints a string to the stream, encoded as UTF-8
public PrintString ( char v, int offset, int length ) : void
v char the string to print. ///
offset int
length int
return void

RemoveRef() public method

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

ReplaceRef() public method

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

StartCall() public method

Starts the method call. Clients would use startCall instead of call if they wanted finer control over writing the arguments, or needed to write headers.
 method-name 
public StartCall ( ) : void
return void

StartCall() public method

Starts the method call. Clients would use startCall instead of call if they wanted finer control over writing the arguments, or needed to write headers.
  method-name 
public StartCall ( String method ) : void
method String the method name to call. ///
return void

StartReply() public method

Starts the reply

A successful completion will have a single value:

public StartReply ( ) : void
return void

WriteBoolean() public method

Writes a boolean value to the stream. The boolean will be written with the following syntax:
 0 1 
public WriteBoolean ( bool bValue ) : void
bValue bool the boolean value to write. ///
return void

WriteByteBufferEnd() public method

Writes a byte buffer to the stream.
 b b16 b18 bytes 
public WriteByteBufferEnd ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

WriteByteBufferPart() public method

Writes a byte buffer to the stream.
 b b16 b18 bytes 
public WriteByteBufferPart ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

WriteBytes() public method

Writes a byte array to the stream. The array will be written with the following syntax:
 bytes 
If the value is null, it will be written as
  
public WriteBytes ( byte buffer ) : void
buffer byte
return void

WriteBytes() public method

Writes a byte array to the stream. The array will be written with the following syntax:
 bytes 
If the value is null, it will be written as
  
public WriteBytes ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

WriteDouble() public method

Writes a double value to the stream. The double will be written with the following syntax:
 value 
public WriteDouble ( double dValue ) : void
dValue double
return void

WriteFault() public method

Writes a fault. The fault will be written as a descriptive string followed by an object:
  code the fault code message the fault mesage detail t\x00\xnnjavax.ejb.FinderException ...   
public WriteFault ( System code, System message, System detail ) : void
code System the fault code, a three digit ///
message System
detail System
return void

WriteHeader() public method

Writes a header name. The header value must immediately follow.
 
foo
value<;/int>
public WriteHeader ( String name ) : void
name String
return void

WriteInt() public method

Writes an integer value to the stream. The integer will be written with the following syntax:
 int value 
public WriteInt ( int intValue ) : void
intValue int
return void

WriteListBegin() public method

Writes the list header to the stream. List writers will call writeListBegin followed by the list contents and then call writeListEnd.
  ArrayList 3 1 2 3  
public WriteListBegin ( int length, String type ) : void
length int
type String
return void

WriteListEnd() public method

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

WriteLong() public method

Writes a long value to the stream. The long will be written with the following syntax:
 int value 
public WriteLong ( long lValue ) : void
lValue long
return void

WriteMapBegin() public method

Writes the map header to the stream. Map writers will call writeMapBegin followed by the map contents and then call writeMapEnd.
  type ( )*  
public WriteMapBegin ( System type ) : void
type System
return void

WriteMapEnd() public method

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

WriteMethod() public method

Writes the method for a call.
 value 
public WriteMethod ( String method ) : void
method String the method name to call. ///
return void

WriteNull() public method

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

WriteObject() public method

Writes any object to the output stream.
public WriteObject ( object obj ) : void
obj object object to write
return void

WriteRef() public method

Writes a reference.
 int 
public WriteRef ( int intValue ) : void
intValue int
return void

WriteRemote() public method

Writes a remote object reference to the stream. The type is the type of the remote interface.
  test.account.Account http://caucho.com/foo;ejbid=bar  
public WriteRemote ( String type, String url ) : void
type String
url String
return void

WriteString() public method

Writes a string value to the stream using UTF-8 encoding. The string will be written with the following syntax:
 string-value 
If the value is null, it will be written as
  
public WriteString ( String sValue ) : void
sValue String
return void

WriteString() public 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 
If the value is null, it will be written as
 N 
public WriteString ( char buffer, int offset, int length ) : void
buffer char
offset int
length int
return void

WriteUTCDate() public method

Writes a date to the stream.
 iso8901 
public WriteUTCDate ( long time ) : void
time long the date in milliseconds from the epoch in UTC ///
return void

printDate() public method

Prints a date.
public printDate ( System.DateTime dateTime ) : void
dateTime System.DateTime
return void

Property Details

m_srOutput protected_oe property

the output stream
protected Stream m_srOutput
return Stream