obspy.core.util.misc.CaptureIO

class CaptureIO[source]

Bases: _io.TextIOWrapper

Attributes

buffer

closed

encoding

errors

line_buffering

name

newlines

write_through

Public Methods

close

detach

fileno

flush

getvalue

isatty

read

readable

readline

readlines

Return a list of lines from the stream.

reconfigure

Reconfigure the text stream with new parameters.

seek

seekable

tell

truncate

writable

write

writelines

Write a list of lines to stream.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

CaptureIO._checkClosed()
CaptureIO._checkReadable()
CaptureIO._checkSeekable()
CaptureIO._checkWritable()

Special Methods

CaptureIO.__del__()
CaptureIO.__delattr__(name, /)

Implement delattr(self, name).

CaptureIO.__dir__()

Default dir() implementation.

CaptureIO.__enter__()
CaptureIO.__eq__(value, /)

Return self==value.

CaptureIO.__exit__()
CaptureIO.__format__(format_spec, /)

Default object formatter.

CaptureIO.__ge__(value, /)

Return self>=value.

CaptureIO.__getattribute__(name, /)

Return getattr(self, name).

CaptureIO.__gt__(value, /)

Return self>value.

CaptureIO.__hash__()

Return hash(self).

CaptureIO.__init__()[source]
CaptureIO.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

CaptureIO.__iter__()

Implement iter(self).

CaptureIO.__le__(value, /)

Return self<=value.

CaptureIO.__lt__(value, /)

Return self<value.

CaptureIO.__ne__(value, /)

Return self!=value.

CaptureIO.__new__(**kwargs)
CaptureIO.__next__()

Implement next(self).

CaptureIO.__reduce__()

Helper for pickle.

CaptureIO.__reduce_ex__(protocol, /)

Helper for pickle.

CaptureIO.__repr__()

Return repr(self).

CaptureIO.__setattr__(name, value, /)

Implement setattr(self, name, value).

CaptureIO.__sizeof__()

Size of object in memory, in bytes.

CaptureIO.__str__()

Return str(self).

CaptureIO.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).