obspy.core.util.misc.CaptureIO¶
-
class
CaptureIO
[source]¶ Bases:
_io.TextIOWrapper
Attributes
__dict__
__doc__
__module__
buffer
closed
encoding
Encoding of the text stream. errors
The error setting of the decoder or encoder. line_buffering
name
newlines
Line endings translated so far. write_through
Public Methods
close
Flush and close the IO object. detach
Separate the underlying buffer from the TextIOBase and return it. fileno
Returns underlying file descriptor if one exists. flush
Flush write buffers, if applicable. getvalue
isatty
Return whether this is an ‘interactive’ stream. read
Read at most n characters from stream. readable
Return whether object was opened for reading. readline
Read until newline or EOF. readlines
Return a list of lines from the stream. reconfigure
Reconfigure the text stream with new parameters. seek
Change stream position. seekable
Return whether object supports random access. tell
Return current stream position. truncate
Truncate file to size bytes. writable
Return whether object was opened for writing. write
Write string to stream. writelines
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
_checkClosed
_checkReadable
_checkSeekable
_checkWritable
Special Methods
__dir__
Default dir() implementation. __enter__
__exit__
__format__
Default object formatter. __getstate__
__init__
Initialize self. __init_subclass__
This method is called when a class is subclassed. __new__
Create and return a new object. __reduce__
Helper for pickle. __reduce_ex__
Helper for pickle. __sizeof__
Size of object in memory, in bytes. __subclasshook__
Abstract classes can override this to customize issubclass().