C# Class indice.Edi.EdiTextWriter

Represents a writer that provides a fast, non-cached, forward-only way of generating EDI data.
Inheritance: EdiWriter
Show file Open project: indice-co/EDI.Net Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes this stream and the underlying stream.

EdiTextWriter ( TextWriter textWriter, IEdiGrammar grammar ) : System

Creates an instance of the EdiWriter class using the specified TextWriter.

Flush ( ) : void

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

WriteRaw ( string fragment ) : void

Writes raw Edi.

WriteSegmentName ( string name ) : void

Writes the segment name of a name/value pair on a Edi object.

WriteSegmentTerminator ( ) : void
WriteValue ( System.DateTime value, string format ) : void

Writes a DateTime value.

WriteValue ( DateTimeOffset value, string format ) : void

Writes a DateTimeOffset value.

WriteValue ( System.Guid value ) : void

Writes a Guid value.

WriteValue ( System.TimeSpan value ) : void

Writes a TimeSpan value.

WriteValue ( Uri value ) : void

Writes a Uri value.

WriteValue ( bool value ) : void

Writes a Boolean value.

WriteValue ( char value ) : void

Writes a Char value.

WriteValue ( decimal value, Picture picture ) : void

Writes a Decimal value.

WriteValue ( double value, Picture picture = null ) : void

Writes a Double value.

WriteValue ( float value, Picture picture ) : void

Writes a Single value.

WriteValue ( int value, Picture picture = null ) : void

Writes a Int32 value.

WriteValue ( long value, Picture picture = null ) : void

Writes a Int64 value.

WriteValue ( object value ) : void

Writes a Object value. An error will raised if the value cannot be written as a single Edi token.

WriteValue ( sbyte value, Picture picture ) : void

Writes a SByte value.

WriteValue ( short value, Picture picture ) : void

Writes a Int16 value.

WriteValue ( string value, Picture picture ) : void

Writes a String value.

WriteValue ( uint value, Picture picture = null ) : void

Writes a UInt32 value.

WriteValue ( ulong value, Picture picture = null ) : void

Writes a UInt64 value.

WriteValue ( ushort value, Picture picture ) : void

Writes a UInt16 value.

Protected Methods

Method Description
WriteComponentDelimiter ( ) : void
WriteElementDelimiter ( ) : void
WriteNewLine ( ) : void
WriteSegmentNameDelimiter ( ) : void

Private Methods

Method Description
EnsureWriteBuffer ( ) : void
WriteEscapedString ( string value ) : void
WriteIntegerValue ( long value, Picture picture ) : void
WriteIntegerValue ( ulong uvalue, Picture picture ) : void

Method Details

Close() public method

Closes this stream and the underlying stream.
public Close ( ) : void
return void

EdiTextWriter() public method

Creates an instance of the EdiWriter class using the specified TextWriter.
public EdiTextWriter ( TextWriter textWriter, IEdiGrammar grammar ) : System
textWriter System.IO.TextWriter The TextWriter to write to.
grammar IEdiGrammar
return System

Flush() public method

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
public Flush ( ) : void
return void

WriteComponentDelimiter() protected method

protected WriteComponentDelimiter ( ) : void
return void

WriteElementDelimiter() protected method

protected WriteElementDelimiter ( ) : void
return void

WriteNewLine() protected method

protected WriteNewLine ( ) : void
return void

WriteRaw() public method

Writes raw Edi.
public WriteRaw ( string fragment ) : void
fragment string The raw Edi fragment to write.
return void

WriteSegmentName() public method

Writes the segment name of a name/value pair on a Edi object.
public WriteSegmentName ( string name ) : void
name string The name of the property.
return void

WriteSegmentNameDelimiter() protected method

protected WriteSegmentNameDelimiter ( ) : void
return void

WriteSegmentTerminator() public method

public WriteSegmentTerminator ( ) : void
return void

WriteValue() public method

Writes a DateTime value.
public WriteValue ( System.DateTime value, string format ) : void
value System.DateTime The value to write.
format string
return void

WriteValue() public method

Writes a DateTimeOffset value.
public WriteValue ( DateTimeOffset value, string format ) : void
value DateTimeOffset The value to write.
format string
return void

WriteValue() public method

Writes a Guid value.
public WriteValue ( System.Guid value ) : void
value System.Guid The value to write.
return void

WriteValue() public method

Writes a TimeSpan value.
public WriteValue ( System.TimeSpan value ) : void
value System.TimeSpan The value to write.
return void

WriteValue() public method

Writes a Uri value.
public WriteValue ( Uri value ) : void
value System.Uri The value to write.
return void

WriteValue() public method

Writes a Boolean value.
public WriteValue ( bool value ) : void
value bool The value to write.
return void

WriteValue() public method

Writes a Char value.
public WriteValue ( char value ) : void
value char The value to write.
return void

WriteValue() public method

Writes a Decimal value.
public WriteValue ( decimal value, Picture picture ) : void
value decimal The value to write.
picture Picture
return void

WriteValue() public method

Writes a Double value.
public WriteValue ( double value, Picture picture = null ) : void
value double The value to write.
picture Picture
return void

WriteValue() public method

Writes a Single value.
public WriteValue ( float value, Picture picture ) : void
value float The value to write.
picture Picture
return void

WriteValue() public method

Writes a Int32 value.
public WriteValue ( int value, Picture picture = null ) : void
value int The value to write.
picture Picture
return void

WriteValue() public method

Writes a Int64 value.
public WriteValue ( long value, Picture picture = null ) : void
value long The value to write.
picture Picture
return void

WriteValue() public method

Writes a Object value. An error will raised if the value cannot be written as a single Edi token.
public WriteValue ( object value ) : void
value object The value to write.
return void

WriteValue() public method

Writes a SByte value.
public WriteValue ( sbyte value, Picture picture ) : void
value sbyte The value to write.
picture Picture
return void

WriteValue() public method

Writes a Int16 value.
public WriteValue ( short value, Picture picture ) : void
value short The value to write.
picture Picture
return void

WriteValue() public method

Writes a String value.
public WriteValue ( string value, Picture picture ) : void
value string The value to write.
picture Picture
return void

WriteValue() public method

Writes a UInt32 value.
public WriteValue ( uint value, Picture picture = null ) : void
value uint The value to write.
picture Picture
return void

WriteValue() public method

Writes a UInt64 value.
public WriteValue ( ulong value, Picture picture = null ) : void
value ulong The value to write.
picture Picture
return void

WriteValue() public method

Writes a UInt16 value.
public WriteValue ( ushort value, Picture picture ) : void
value ushort The value to write.
picture Picture
return void