GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
STREAM
+
Point of view
STREAM_HANDLER
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
RECYCLING_POOL
STREAM_HANDLER
FILTER
All features
deferred class STREAM
Summary
top
A stream of characters.
There are two kinds of streams: + input streams (see
INPUT_STREAM
) + output_streams (see
OUTPUT_STREAM
)
Streams can: + be connected (e.g. to some system object) + be used to read or write characters, only if they are connected + be filtered (see
FILTER
)
Direct parents
Insert list:
DISPOSABLE
,
RECYCLABLE
Known children
Inherit list:
FILE_STREAM
,
INPUT_STREAM
,
OUTPUT_STREAM
Overview
top
Exported features
is_connected
:
BOOLEAN
True if the stream is connected.
disconnect
Try to disconnect the stream.
descriptor
:
INTEGER_32
Some OS-dependent descriptor.
has_descriptor
:
BOOLEAN
True if that stream can be associated to some OS-meaningful descriptor.
can_disconnect
:
BOOLEAN
True if the stream can be safely disconnected (without data loss, etc.)
url
:
URL
The
URL
to this stream as resource
stream_pointer
:
POINTER
Some Back-end-dependent pointer (
FILE
* in C, InputStream or OutputStream in Java)
has_stream_pointer
:
BOOLEAN
True if that stream can be associated to some Back-end-meaningful stream pointer.
event_exception
:
EVENT_DESCRIPTOR
is_connected
:
BOOLEAN
deferred function
top
True if the stream is connected.
Only in that case can data be transferred via this stream.
disconnect
deferred procedure
top
Try to disconnect the stream.
Note that it *does not* ensure that the stream will effectively be disconnected (some terminal streams, for instance, are always connected) but the feature can be used to
"shake off"
filters.
require
is_connected
can_disconnect
descriptor
:
INTEGER_32
effective function
top
Some OS-dependent descriptor.
Mainly used by the sequencer library (see READY_CONDITION).
require
is_connected
has_descriptor
has_descriptor
:
BOOLEAN
effective function
top
True if that stream can be associated to some OS-meaningful descriptor.
require
is_connected
can_disconnect
:
BOOLEAN
deferred function
top
True if the stream can be safely disconnected (without data loss, etc.)
require
is_connected
url
:
URL
frozen
effective function
top
The
URL
to this stream as resource
ensure
not_void:
Result /= Void
always_the_same:
Result =
url
stream_pointer
:
POINTER
effective function
top
Some Back-end-dependent pointer (
FILE
* in C, InputStream or OutputStream in Java)
require
is_connected
has_stream_pointer
has_stream_pointer
:
BOOLEAN
effective function
top
True if that stream can be associated to some Back-end-meaningful stream pointer.
require
is_connected
event_exception
:
EVENT_DESCRIPTOR
effective function
top