I gather there is a class java.net.SocketInputStream, since that is the type I find returned by Socket.getInputStream(). I'd like to know more about this class, but it is not mentioned in the java.net Javadoc. I am surprised to learn that there are classes in the standard packages not mentioned in the Javadoc.

Can anyone tell me if this class is documented somewhere?

I am using java version 1.4.0 on Windows 2000.

Here is the code which tells me of the existence of java.net.SocketInputStream.

/* Testing what type of InputStream a Socket gives me.
*/

import java.io.*;
import java.net.*;

class SocketStreamPeeker{
  public static void main(String[] args) throws Exception{
    Socket so =  new Socket("trijug.org", 80);
    InputStream in = so.getInputStream();
    Class cl = in.getClass();
    System.out.println(cl.getName());
    so.close();
  }
}


Rich Hammer



_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to