how to make reader.ready() return false

reader.ready() method returned false for me when reading from

when reader is obtained from databse. eg. Clob reader.

So that can be acceptable that next call may block thats why ready() returned false.

But i want to simulate situation when reader.ready() returns false even if reader is eg. FileReader, directy reading from

existing file on local unix machine. (and this file is having content)

So can it happen? And in which cases?

[469 byte] By [mithuna] at [2007-10-3 3:41:01]
# 1
Why do you want to do this?There are few if any correct applications of Reader.ready(), or InputStream.available().
ejpa at 2007-7-14 21:36:48 > top of Java-index,Java Essentials,Java Programming...
# 2
i want this just to consider the case when it can happen before using this method.
mithuna at 2007-7-14 21:36:48 > top of Java-index,Java Essentials,Java Programming...
# 3
can you telll me those few cases for this method ?I am interested in cases when io operations on local non empty file may lead to blocking call so that this method will return false
mithuna at 2007-7-14 21:36:48 > top of Java-index,Java Essentials,Java Programming...
# 4
It will never return false for a local file AFAIK.
ejpa at 2007-7-14 21:36:48 > top of Java-index,Java Essentials,Java Programming...