|
|
Re: one more Question
|
Posted: Mar 23, 2005 1:27 PM
|
|
> These classes are not public and i think java doc is only > for public and protected scope. > > Don't know the reason why they want to hide these from > developer.
Because every time you release a class for public access, you make a commitment to support it, and more importantly, to keep supporting it. Making those classes part of the public API would have committed Sun to never changing them, because doing so would break legacy code.
In general, library designers should make as little public as possible. Library users should never use undocumented code. If you do use SocksSocketImpl, PlainSocketImply, etc, you can expect them to break in the next release of Java, as Sun continues to improve the internals. (Assuming you even could, which Java should prevent unless you muck around with the source files.)
|
|