wx.FileSys.wxInputStreamWrapper Class Reference

Inheritance diagram for wx.FileSys.wxInputStreamWrapper:


List of all members.

Implementations of Delegates

long GetLength ()

Public Member Functions

override void Dispose ()
int Read (byte[] buffer, int offset, int count)
long Seek (long offset, SeekOrigin origin)
 wxInputStreamWrapper (IntPtr wxObject)
 wxInputStreamWrapper (Stream src)


bool CanRead [get]
bool CanSeek [get]
long Length [get]
long Position [get, set]
Stream Src [get]

Detailed Description

Analogously to class wxString, this class wraps wxInputStream. Anatomy: This inherits from wx.Object and is, thus, a wx.NET wrapper class. Constructors either are required by wx.Object to implement the FindObject service or they pass a System.IO.Stream. This instance then serves as a wxWidgets fassade to the stream that you originally provided. On instance creation, this instance sets callback to implement a wxInputStream using the framework stream as source.

However, instances of this class may occur in another state: Without a framework stream as source. In that case, the instance simply wrapps a fully functional wxWidgets input stream without setting callbacks.

Constructor & Destructor Documentation

wx.FileSys.wxInputStreamWrapper.wxInputStreamWrapper ( Stream  src  ) 

Generates a new wxWidgets wxInputStream instance whose basic functions refer to methods of src.

wx.FileSys.wxInputStreamWrapper.wxInputStreamWrapper ( IntPtr  wxObject  ) 

Generates an instance wrapping a fully functional wxWidgets wxInputStream.

Member Function Documentation

override void wx.FileSys.wxInputStreamWrapper.Dispose (  )  [virtual]

Reimplemented from wx.Object.

long wx.FileSys.wxInputStreamWrapper.GetLength (  ) 

In contrast to property Length this does not throw exceptions but returns -1.

int wx.FileSys.wxInputStreamWrapper.Read ( byte[]  buffer,
int  offset,
int  count 

long wx.FileSys.wxInputStreamWrapper.Seek ( long  offset,
SeekOrigin  origin 

This is not supported.

Property Documentation

bool wx.FileSys.wxInputStreamWrapper.CanRead [get]

bool wx.FileSys.wxInputStreamWrapper.CanSeek [get]

This returns whether a seek operation failed in the past or the wrapped stream does not provide a current position.

long wx.FileSys.wxInputStreamWrapper.Length [get]

This is not supported.

long wx.FileSys.wxInputStreamWrapper.Position [get, set]

This will throw an NotSupportedException iff the wrapped wxInputStream does not support the analogous operation.

Stream wx.FileSys.wxInputStreamWrapper.Src [get]

This is the C# stream that is used as data source. Depending of the mode of this implementation this may either be a standard System.IO.Stream providing data for an internal wxInputStream or an instance of class wxInputStream wrapping a wxWidgets input stream.

Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads