Then all my fun came to an end.
With files, the option to read at on offset is exercised after the file is open via a seek. While FTP servers, the option to read at an offset is exercised via the REST command prior to opening the file.
Usually polymorphism, just means calling the same method and having the instance do the right thing. Here, polymorphism must span a series of API calls to work right. Ie,
$file->open; $file->seek; $file->read; ## must translate to open, seek, read for files ## must translate to REST, RETR for FTP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Polymorphic Abstraction of Disk versus FTP File Access: A Stumbling Block
by btrott (Parson) on May 22, 2001 at 05:05 UTC | |
|
(tye)Re: Polymorphic Abstraction of Disk versus FTP File Access: A Stumbling Block
by tye (Sage) on May 22, 2001 at 05:02 UTC |