Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17299

Re: com.sun.ftp?

From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: com.sun.ftp?
Date 2012-08-07 21:56 +0200
Message-ID <a8da6qFeo0U1@mid.individual.net> (permalink)
References <jvp9ts$otj$1@dont-email.me> <50203f07$0$290$14726298@news.sunsite.dk> <jvpimg$chd$1@dont-email.me>

Show all headers | View raw


On 08/07/2012 01:06 AM, Knute Johnson wrote:
> I think I was assuming that it is a coming feature.  Why would they go
> to the effort to create an ftp package and include it in the JDK if it
> wasn't going to be a regular package some day.

One reason would be that it is not used explicitly but rather 
implicitly, for example via
http://docs.oracle.com/javase/6/docs/api/java/net/URL.html#openStream%28%29

Also from that page: "Protocol handlers for the following protocols are 
guaranteed to exist on the search path :-

          http, https, ftp, file, and jar"

In other words: it is a regular package but it is not intended to be 
used directly but only via a different publicly accessible package.

Kind regards

	robert

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

com.sun.ftp? Knute Johnson <nospam@knutejohnson.com> - 2012-08-06 13:37 -0700
  Re: com.sun.ftp? Knute Johnson <nospam@knutejohnson.com> - 2012-08-06 13:44 -0700
  Re: com.sun.ftp? Arne Vajhøj <arne@vajhoej.dk> - 2012-08-06 18:02 -0400
    Re: com.sun.ftp? Knute Johnson <nospam@knutejohnson.com> - 2012-08-06 16:06 -0700
      Re: com.sun.ftp? Arne Vajhøj <arne@vajhoej.dk> - 2012-08-06 19:18 -0400
      Re: com.sun.ftp? Robert Klemme <shortcutter@googlemail.com> - 2012-08-07 21:56 +0200
  Re: com.sun.ftp? Roedy Green <see_website@mindprod.com.invalid> - 2012-08-07 03:27 -0700

csiph-web