Package paramiko :: Module channel :: Class ChannelFile
[show private | hide private]
[frames | no frames]

Class ChannelFile

object --+
         |
        ChannelFile


A file-like wrapper around Channel. A ChannelFile is created by calling Channel.makefile and doesn't have the non-portable side effect of Channel.fileno.

Bug: To correctly emulate the file object created from a socket's makefile method, a Channel and its ChannelFile should be able to be closed or garbage-collected independently. Currently, closing the ChannelFile does nothing but flush the buffer.

Method Summary
  __init__(self, channel, mode, buf_size)
  __iter__(self)
string __repr__(self)
Returns a string representation of this object, for debugging.
  close(self)
  flush(self)
  next(self)
  read(self, size)
  readline(self, size)
  readlines(self, sizehint)
  write(self, str)
  writelines(self, sequence)
  xreadlines(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Method Details

__repr__(self)
(Representation operator)

Returns a string representation of this object, for debugging.
Returns:
string
Overrides:
__builtin__.object.__repr__

Generated by Epydoc 2.0 on Sun Jan 4 02:33:11 2004 http://epydoc.sf.net