stream io seekable(does the stream support seek(tell(return the current stream position/pointer writeable(returns true if data can be written to the stream writelines(lineswrite list of lines to the stream raw io/unbuffered io classes raw io or unbuffered io is provided by the rawiobase and fileio classes rawiobase this class is subclass of iobase and is the base class for raw binary (aka unbufferedi/ raw binary / typically provides low-level access to an underlying os device or apiand does not try to encapsulate it in high-level primitives (this is the responsibility of the buffered / and text / classes that can wrap raw / streamthe class adds methods such asread(size=- this method reads up to size bytes from the stream and returns them if size is unspecified or - then all available bytes are read readall(this method reads and returns all available bytes within the stream readint(bthis method reads the bytes in the stream into pre-allocatedwritable bytes-like object ( into byte arrayit returns the number of bytes read write(bthis method writes the data provided by ( bytes -like object such as byte arrayinto the underlying raw stream fileio the fileio class represents raw unbuffered binary io stream linked to an operating system level file when the fileio class is instantiated it can be given file name and the mode (such as 'ror 'wetc it can also be given flag to indicate whether the file descriptor associated with the underlying os level file should be closed or not this class is used for the low-level reading of binary data and is at the heart of all file oriented data access (although it is often wrapped by another stream such as buffered reader or writer binary io/buffered io classes binary io aka buffered io is filter stream that wraps lower level rawiobase stream (such as fileio streamthe classes implementing buffered io all extend the bufferediobase class and arebufferedreader when reading data from this objecta larger amount of data may be requested from the underlying raw streamand kept in an internal buffer the buffered data can then be returned directly on subsequent reads