indexing
description: "Files viewed as persistent sequences of ASCII characters"
library: "Free implementation of ELKS library"
copyright: "Copyright (c) 1986-2004, Eiffel Software and others"
license: "Eiffel Forum License v2 (see forum.txt)"
date: "$Date: 2008-05-23 17:24:07 -0700 (Fri, 23 May 2008) $"
revision: "$Revision: 170 $"
class interface
PLAIN_TEXT_FILE
create
make (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
file_closed: is_closed
make_open_read (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
make_open_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_write: is_open_write
make_open_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_append: is_open_append
make_open_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_create_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_open_read_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_append: is_open_append
feature
make (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
file_closed: is_closed
make_create_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_open_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_append: is_open_append
make_open_read (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
make_open_read_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_append: is_open_append
make_open_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_open_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_write: is_open_write
feature
access_date: INTEGER_32
FILE
require FILE
file_exists: exists
date: INTEGER_32
FILE
require FILE
file_exists: exists
descriptor: INTEGER_32
FILE
require IO_MEDIUM
valid_handle: descriptor_available
require else FILE
file_opened: not is_closed
descriptor_available: BOOLEAN
FILE
file_info: UNIX_FILE_INFO
FILE
file_pointer: POINTER
FILE
generating_type: STRING_8
ANY
ensure ANY
generating_type_not_void: Result /= Void
generating_type_not_empty: not Result.is_empty
generator: STRING_8
ANY
ensure ANY
generator_not_void: Result /= Void
generator_not_empty: not Result.is_empty
group_id: INTEGER_32
FILE
require FILE
file_exists: exists
has (v: like item): BOOLEAN
`v'
object_comparison
LINEAR
require CONTAINER
True
ensure CONTAINER
not_found_in_empty: Result implies not is_empty
index_of (v: like item; i: INTEGER_32): INTEGER_32
`i'`v'
object_comparison
LINEAR
require LINEAR
positive_occurrences: i > 0
ensure LINEAR
non_negative_result: Result >= 0
inode: INTEGER_32
FILE
require FILE
file_exists: exists
item: CHARACTER_8
FILE
require TRAVERSABLE
not_off: not off
require ACTIVE
readable: readable
item_for_iteration: CHARACTER_8
LINEAR
require LINEAR
not_off: not off
links: INTEGER_32
FILE
require FILE
file_exists: exists
name: STRING_8
FILE
occurrences (v: like item): INTEGER_32
`v'
object_comparison
LINEAR
require BAG
True
ensure BAG
non_negative_occurrences: Result >= 0
owner_name: STRING_8
FILE
require FILE
file_exists: exists
position: INTEGER_32
FILE
require LINEAR
True
protection: INTEGER_32
FILE
require FILE
file_exists: exists
retrieved: ANY
`Retrieve_exception'
FILE
require IO_MEDIUM
is_readable: readable
support_storable: support_storable
ensure IO_MEDIUM
result_exists: Result /= Void
separator: CHARACTER_8
FILE
user_id: INTEGER_32
FILE
require FILE
file_exists: exists
feature
count: INTEGER_32
FILE
feature
frozen deep_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies (other /= Void and then some.same_type (other))
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
frozen is_deep_equal (other: PLAIN_TEXT_FILE): BOOLEAN
`Current'`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
shallow_implies_deep: standard_is_equal (other) implies Result
same_type: Result implies same_type (other)
symmetric: Result implies other.is_deep_equal (Current)
is_equal (other: PLAIN_TEXT_FILE): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
same_file (fn: STRING_8): BOOLEAN
`a_filename'
FILE
require FILE
fn_not_void: fn /= Void
fn_not_empty: not fn.is_empty
frozen standard_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: PLAIN_TEXT_FILE): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
access_exists: BOOLEAN
FILE
after: BOOLEAN
FILE
before: BOOLEAN
FILE
bytes_read: INTEGER_32
read_to_managed_pointer
IO_MEDIUM
changeable_comparison_criterion: BOOLEAN
object_comparison
CONTAINER
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
end_of_file: BOOLEAN
FILE
require FILE
opened: not is_closed
exhausted: BOOLEAN
LINEAR
ensure LINEAR
exhausted_when_off: off implies Result
exists: BOOLEAN
FILE
require IO_MEDIUM
True
ensure then FILE
unchanged_mode: mode = old mode
extendible: BOOLEAN
FILE
require COLLECTION
True
require IO_MEDIUM
True
file_readable: BOOLEAN
FILE
file_writable: BOOLEAN
FILE
full: BOOLEAN is False
FILE
is_access_executable: BOOLEAN
FILE
require FILE
file_exists: exists
is_access_owner: BOOLEAN
FILE
require FILE
file_exists: exists
is_access_readable: BOOLEAN
FILE
require FILE
file_exists: exists
is_access_writable: BOOLEAN
FILE
require FILE
file_exists: exists
is_block: BOOLEAN
FILE
require FILE
file_exists: exists
is_character: BOOLEAN
FILE
require FILE
file_exists: exists
is_closed: BOOLEAN
FILE
is_creatable: BOOLEAN
FILE
is_device: BOOLEAN
FILE
require FILE
file_exists: exists
is_directory: BOOLEAN
FILE
require FILE
file_exists: exists
is_empty: BOOLEAN
FINITE
is_executable: BOOLEAN
FILE
require IO_MEDIUM
handle_exists: exists
is_fifo: BOOLEAN
FILE
require FILE
file_exists: exists
is_inserted (v: CHARACTER_8): BOOLEAN
`v'
`has (v)'
COLLECTION
is_open_append: BOOLEAN
FILE
is_open_read: BOOLEAN
FILE
is_open_write: BOOLEAN
FILE
is_owner: BOOLEAN
FILE
require FILE
file_exists: exists
is_plain: BOOLEAN
FILE
require FILE
file_exists: exists
is_plain_text: BOOLEAN
is_readable: BOOLEAN
FILE
require IO_MEDIUM
handle_exists: exists
is_setgid: BOOLEAN
FILE
require FILE
file_exists: exists
is_setuid: BOOLEAN
FILE
require FILE
file_exists: exists
is_socket: BOOLEAN
FILE
require FILE
file_exists: exists
is_sticky: BOOLEAN
FILE
require FILE
file_exists: exists
is_symlink: BOOLEAN
FILE
require FILE
file_exists: exists
is_writable: BOOLEAN
FILE
require IO_MEDIUM
handle_exists: exists
last_character: CHARACTER_8
read_character
IO_MEDIUM
last_double: REAL_64
read_double
IO_MEDIUM
last_integer: INTEGER_32
read_integer
IO_MEDIUM
last_integer_16: INTEGER_16
read_integer_16
IO_MEDIUM
last_integer_32: INTEGER_32
last_integer
IO_MEDIUM
last_integer_64: INTEGER_64
read_integer_64
IO_MEDIUM
last_integer_8: INTEGER_8
read_integer_8
IO_MEDIUM
last_natural: NATURAL_32
read_natural
IO_MEDIUM
last_natural_16: NATURAL_16
read_natural_16
IO_MEDIUM
last_natural_32: NATURAL_32
last_natural
IO_MEDIUM
last_natural_64: NATURAL_64
read_natural_64
IO_MEDIUM
last_natural_8: NATURAL_8
read_natural_8
IO_MEDIUM
last_real: REAL_32
read_real
IO_MEDIUM
last_string: ?STRING_8
IO_MEDIUM
object_comparison: BOOLEAN
equal`='
`='
CONTAINER
off: BOOLEAN
FILE
require TRAVERSABLE
True
path_exists: BOOLEAN
name
FILE
ensure then FILE
unchanged_mode: mode = old mode
prunable: BOOLEAN
FILE
readable: BOOLEAN
SEQUENCE
require ACTIVE
True
require IO_MEDIUM
handle_exists: exists
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
support_storable: BOOLEAN is False
writable: BOOLEAN
SEQUENCE
feature
close
FILE
require IO_MEDIUM
medium_is_open: not is_closed
ensure then FILE
is_closed: is_closed
compare_objects
equal
`='
CONTAINER
require CONTAINER
changeable_comparison_criterion: changeable_comparison_criterion
ensure CONTAINER
object_comparison
compare_references
`='
equal
CONTAINER
require CONTAINER
changeable_comparison_criterion: changeable_comparison_criterion
ensure CONTAINER
reference_comparison: not object_comparison
create_read_write
FILE
require FILE
is_closed: is_closed
ensure FILE
exists: exists
open_read: is_open_read
open_write: is_open_write
fd_open_append (fd: INTEGER_32)
`fd'
FILE
ensure FILE
exists: exists
open_append: is_open_append
fd_open_read (fd: INTEGER_32)
`fd'
FILE
ensure FILE
exists: exists
open_read: is_open_read
fd_open_read_append (fd: INTEGER_32)