Package svnmailer :: Module stream :: Class TruncatingFileStream
[show private | hide private]
[frames | no frames]

Class TruncatingFileStream

  object --+        
 _BaseStream --+    
TruncatingStream --+

Truncating stream, which writes the truncating note on close
Method Summary
Closes the stream
    Inherited from TruncatingStream
  __init__(self, stream, maxsize, add_note)
int getTruncatedLineCount(self)
Returns the number of truncated lines
Returns the content
  seek(self, position, mode)
Sets the file position
  write(self, towrite)
Writes a string up to the limit
  writeWithoutTruncation(self, towrite)
Writes without truncation
    Inherited from _BaseStream
  __getattr__(self, name)
Delegates all undefined attributes to the stream
  writelines(self, lines)
Write a list of strings
    Inherited from object
x.__delattr__('name') <==> del
x.__getattribute__('name') <==>
x.__hash__() <==> hash(x)...
helper for pickle...
helper for pickle...
x.__repr__() <==> repr(x)...
x.__setattr__('name', value) <==> = value...
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
    Inherited from TruncatingStream
int current: The number of bytes received
str lastchar: The last character written
int maxsize: The maximum size in bytes
int trunced: The number of lines truncated (maybe actual-1)
    Inherited from _BaseStream
file stream: The wrapped stream

Method Details


Closes the stream

Generated by Epydoc 2.0 on Sun Sep 25 20:49:01 2005