commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ola Berg <ola.b...@arkitema.se>
Subject Re: [Collections] Iterators and ObjectStreams
Date Thu, 13 Jun 2002 09:50:09 GMT
> Ok, so the idea looks very nice, however, the name ObjectStream
> does not fit well to JDK naming conventions. It suggests
> something like InputStream, and not the Iterator. 

Well, concuptually, can you tell the difference? :-)

Seriously: InputStreams, Readers and Iterators all iterate (Readers and Streams over ints
only but anyway). Agrees that the name question is tricky. ObjectStream is a sort of Stream,
OTOH not an int-stream as the InputStreams. InputStreams are kind of iteratish. Finally I
picked ObjectStream because of the close() method, and because of the similar end condition
(you don\'t know you\'ve reached the end until you have read beyond the last entry).

FragileIterator is not good because it suggests an implementation of the java.util.Iterator
interface.

/O 

--------------------
ola.berg@arkitema.se
0733 - 99 99 17

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message