PSP.StreamReader | index /usr/local/share/webware/PSP/StreamReader.py

`This module co-ordinates the reading of the source file.
It maintains the current position of the parser in the source file.
(c) Copyright by Jay Love, 2000 (mailto:jsliv@jslove.org)
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee or royalty is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation or portions thereof, including modifications,
that you make.
This software is based in part on work done by the Jakarta group.`

Modules
`` |  |
os |  |  |

Classes
`` |  | __builtin__.object Mark StreamReader
class Mark(__builtin__.object)
`` | `The Mark class marks a point in an input stream.`
| Methods defined here: __init__(self, reader, fileId=None, stream=None, inBaseDir=None, encoding=None) __str__(self) getFile(self) popStream(self) pushStream(self, inFileId, inStream, inBaseDir, inEncoding) Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`
class StreamReader(__builtin__.object)
`` | `This class handles the PSP source file. It provides the characters to the other parts of the system. It can move forward and backwards in a file and remember locactions.`
| Methods defined here: __init__(self, filename, ctxt) advance(self, length) `Advance length characters` getChars(self, start, stop) getFile(self, i) hasMoreInput(self) init(self) isDelimiter(self) isSpace(self) `No advancing.` mark(self) matches(self, s) newSourceFile(self, filename) nextChar(self) nextContent(self) `Find next < char.` parseAttributeValue(self, valueDict) parseTagAttributes(self) `Parse the attributes at the beginning of a tag.` parseToken(self, quoted) peekChar(self, cnt=1) popFile(self) pushFile(self, filepath, encoding=None) registerSourceFile(self, filepath) reset(self, mark) skipSpaces(self) skipUntil(self, s) `Greedy search. Return the point before the string, but move reader past it.` Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`