EOFException

Hi,

I have a class TinyTLS extending Socket. I open a socket via TinyTLS and read the input stream via BufferedReader. But unfortunately I get EOFException.

Briefly to illustrate;

class TinyTLSextends Socket{}

..

Socket s=new TinyTLS("www.web.com",443);

BufferedReader br=new BufferedReader(new InputStreamReader(s.getInputStream()));

String str;

while ((str=br.readLine())!=null) process(str);// Here I get EOFException

Actually the bufferedreader returns the content of the webpage successfully but at the end the EOFException is thrown.

If I use

Socket s=new Socket(host,port)

it works fine. So the problem is somewhere in the TinyTLS class. What might it be?

Thanks in advance

[1139 byte] By [secprovidera] at [2007-10-2 16:39:31]
# 1
> Hi,> > I have a class TinyTLS extending Socket.Why?
secprovidera at 2007-7-13 17:47:39 > top of Java-index,Java Essentials,Java Programming...
# 2
> So the problem is somewhere in the TinyTLS class. What might it be?A BUG IN YOUR CODEjust a wild guess
ejpa at 2007-7-13 17:47:39 > top of Java-index,Java Essentials,Java Programming...
# 3
> > Hi,> > > > I have a class TinyTLS extending Socket.> > Why?Because the class TinyTLS class supports SSL for mobile device platform.I know that something is wrong the int TinyTLS class, but can not figure out what it can
secprovidera at 2007-7-13 17:47:39 > top of Java-index,Java Essentials,Java Programming...
# 4
Neither can I.
ejpa at 2007-7-13 17:47:39 > top of Java-index,Java Essentials,Java Programming...