wx.InputStream

Inheritance diagram for wx.InputStream:



Description

wx.InputStream is an abstract base class which may not be used directly.

Class API

Methods

__init__(p)

Creates a dummy input stream.

Parameters:

  • p (PyObject)

Returns:

wx.InputStream


CanRead()

Returns True if some data is available in the stream right now, so that calling read wouldn’t block.


Returns:

bool


Eof()

Returns True after an attempt has been made to read past the end of the stream.


Returns:

bool


GetC()

Returns the first character in the input queue and removes it, blocking until it appears if necessary.


Returns:

string


LastRead()

Returns the last number of bytes read.


Returns:

long


Peek()

Returns the first character in the input queue without removing it.


Returns:

string


SeekI(pos, mode=wx.FromStart)

Changes the stream current position.

Parameters:

  • pos (long): Offset to seek to.
  • mode (int): One of wx.FromStart, wx.FromEnd, wx.FromCurrent.

Returns:

long


TellI()

Returns the current stream position.


Returns:

long


Ungetch(buffer)

This function acts like the previous one except that it takes only one character: it is sometimes shorter to use than the generic function.

Parameters:

  • buffer (string)

Returns:

long


close()
No docstrings available for this method.

eof()
No docstrings available for this method.

flush()
No docstrings available for this method.

read(size=-1)

Parameters:

  • size (int)

Returns:

PyObject


readline(size=-1)

Parameters:

  • size (int)

Returns:

PyObject


readlines(sizehint=-1)

Parameters:

  • sizehint (int)

Returns:

PyObject


seek(offset, whence=0)

Parameters:

  • offset (int)
  • whence (int)

tell()
No docstrings available for this method.