Inkscape
Vector Graphics Editor
|
This class is for receiving a stream of data from a file. More...
#include <uristream.h>
Public Member Functions | |
FileInputStream (FILE *source) | |
~FileInputStream () override | |
int | available () override |
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. | |
void | close () override |
Closes this input stream and releases any system resources associated with the stream. | |
int | get () override |
Reads the next byte of data from the input stream. | |
![]() | |
InputStream ()=default | |
Constructor. | |
virtual | ~InputStream ()=default |
Destructor. | |
Private Attributes | |
FILE * | inf |
This class is for receiving a stream of data from a file.
Definition at line 39 of file uristream.h.
Inkscape::IO::FileInputStream::FileInputStream | ( | FILE * | source | ) |
Definition at line 32 of file uristream.cpp.
References inf.
|
override |
Definition at line 44 of file uristream.cpp.
References close().
|
overridevirtual |
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
Implements Inkscape::IO::InputStream.
Definition at line 54 of file uristream.cpp.
|
overridevirtual |
Closes this input stream and releases any system resources associated with the stream.
Implements Inkscape::IO::InputStream.
Definition at line 64 of file uristream.cpp.
References inf.
Referenced by ~FileInputStream().
|
overridevirtual |
Reads the next byte of data from the input stream.
-1 if EOF
Implements Inkscape::IO::InputStream.
Definition at line 76 of file uristream.cpp.
References inf.
|
private |
Definition at line 54 of file uristream.h.
Referenced by close(), FileInputStream(), and get().