Package PyFoam :: Package Basics :: Module LineReader :: Class LineReader
[show private | hide private]
[frames | no frames]

Class LineReader


Read a line from a file

The line is stripped of whitespaces at the start and the end of the line and stored in a variable self.line
Method Summary
  __init__(self)
  bytesRead(self)
Return number of bytes that were already read
  read(self, fh)
reads the next line
  userSaidStop(self)
Return whether the reader caught a Keyboard-interrupt

Method Details

bytesRead(self)

Returns:
number of bytes that were already read

read(self, fh)

reads the next line

fh - filehandle to read from

Return value: False if the end of the file was reached. True otherwise

userSaidStop(self)

Returns:
whether the reader caught a Keyboard-interrupt

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net