commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: svn commit: r911797 - /commons/proper/compress/trunk/src/changes/changes.xml
Date Sat, 20 Feb 2010 00:39:20 GMT
On Fri, Feb 19, 2010 at 6:49 PM, Torsten Curdt <tcurdt@vafer.org> wrote:
>>> While I am fine with the changes itself I find the naming "canRead" on
>>> an InputStream a little ambiguous.
>>> Maybe "canReadArchiveEntry"? Open to other suggestions.
>>
>> I'm not attached to names and can live with either.  I don't feel
>> stream.canRead(anEntry) is ambiguos, but then again I know what it does.
>
> stream.canWrite(entry) is clear
>
> stream.canRead(entry) I am not quite sure what to make of
>
> I am using getNextEntry() to get an entry.
> So I was actually able to read the entry already, no?
>
> What I was referring to in the first place was canRead vs available though.

Then maybe:

canReadEntry(entry)
canWriteEntry(entry)

to go confirm with:

getNextEntry()

?

Cheers
Christian

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


Mime
View raw message