FDO .NET API Reference Feature Data Objects
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

OSGeo::FDO::Common::Io::IoTextWriter Class Reference

Inherits OSGeo::FDO::Runtime::Disposable.

Inheritance diagram for OSGeo::FDO::Common::Io::IoTextWriter:

[legend]
List of all members.

Detailed Description

IoTextWriter writes Unicode wide character text to a binary stream. The text is written in UTF8 format.


Public Member Functions

__property OSGeo::FDO::Common::Io::IoStreamget_Stream ()
 Gets the underlying stream. If a stream was passed to this object then this stream is returned. Otherwise, an auto-generated stream (wrapped around the file name that was passed to this object) is returned.
 IoTextWriter (System::IntPtr unmanaged, System::Boolean autoDelete)
 Constructs a text writer based on an unmanaged instance of the object.
 IoTextWriter (OSGeo::FDO::Common::Io::IoStream *stream)
 Constructs a text writer on a stream.
 IoTextWriter (System::String *fileName)
 Constructs a text writer on a file.
System::Void Write (System::String *data)
 Writes to this text writer. The text is written in UTF8 format.
System::Void WriteLine (System::String *data)
 Same as Write(), except that a carriage return (n) is appended to the text.

Protected Member Functions

System::Void ReleaseUnmanagedObject ()
 DOXYGEN-IGNORE

Constructor & Destructor Documentation

OSGeo::FDO::Common::Io::IoTextWriter::IoTextWriter System::String *  fileName  ) 
 

Constructs a text writer on a file.

Parameters:
fileName Input name of the file to write to. The file is created if it does not yet exist. If it already exists, its previous contents are completely overwritten.
Returns:
Returns IoTextWriter

OSGeo::FDO::Common::Io::IoTextWriter::IoTextWriter OSGeo::FDO::Common::Io::IoStream stream  ) 
 

Constructs a text writer on a stream.

Parameters:
stream Input the stream to write to. Writing starts at the stream's current position.
Returns:
Returns IoTextWriter

OSGeo::FDO::Common::Io::IoTextWriter::IoTextWriter System::IntPtr  unmanaged,
System::Boolean  autoDelete
 

Constructs a text writer based on an unmanaged instance of the object.

Parameters:
unmanaged Input A Pointer to the unmanaged writer.
autoDelete Input Indicates if the constructed object should be automatically deleted once it no longer referenced.

Member Function Documentation

__property OSGeo ::FDO ::Common ::Io ::IoStream* OSGeo::FDO::Common::Io::IoTextWriter::get_Stream  ) 
 

Gets the underlying stream. If a stream was passed to this object then this stream is returned. Otherwise, an auto-generated stream (wrapped around the file name that was passed to this object) is returned.

Returns:
Returns the underlying stream.

System::Void OSGeo::FDO::Common::Io::IoTextWriter::ReleaseUnmanagedObject  )  [protected, virtual]
 

DOXYGEN-IGNORE

Reimplemented from OSGeo::FDO::Runtime::Disposable.

System::Void OSGeo::FDO::Common::Io::IoTextWriter::Write System::String *  data  ) 
 

Writes to this text writer. The text is written in UTF8 format.

Parameters:
data The text to write.

System::Void OSGeo::FDO::Common::Io::IoTextWriter::WriteLine System::String *  data  ) 
 

Same as Write(), except that a carriage return (n) is appended to the text.

Parameters:
data The text to write.

Comments or suggestions? Send us feedback.