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


Groups > comp.lang.java.programmer > #17269 > unrolled thread

com.sun.ftp?

Started byKnute Johnson <nospam@knutejohnson.com>
First post2012-08-06 13:37 -0700
Last post2012-08-07 03:27 -0700
Articles 7 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  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

#17269 — com.sun.ftp?

FromKnute Johnson <nospam@knutejohnson.com>
Date2012-08-06 13:37 -0700
Subjectcom.sun.ftp?
Message-ID<jvp9ts$otj$1@dont-email.me>
Anybody know what the plans are for com.sun.ftp?  I've got a project 
that would work out really well if I could use the FtpClient class from 
that package.  Is it in the Mac version of Java 7?

Thanks,

-- 

Knute Johnson

[toc] | [next] | [standalone]


#17270

FromKnute Johnson <nospam@knutejohnson.com>
Date2012-08-06 13:44 -0700
Message-ID<jvpaau$rnc$1@dont-email.me>
In reply to#17269
On 8/6/2012 1:37 PM, Knute Johnson wrote:
> Anybody know what the plans are for com.sun.ftp?  I've got a project
> that would work out really well if I could use the FtpClient class from
> that package.  Is it in the Mac version of Java 7?
>
> Thanks,
>

Except it isn't com.sun.ftp, it's sun.net.ftp.  It's been one of those 
days already.

-- 

Knute Johnson

[toc] | [prev] | [next] | [standalone]


#17271

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-08-06 18:02 -0400
Message-ID<50203f07$0$290$14726298@news.sunsite.dk>
In reply to#17269
On 8/6/2012 4:37 PM, Knute Johnson wrote:
> Anybody know what the plans are for com.sun.ftp?  I've got a project
> that would work out really well if I could use the FtpClient class from
> that package.  Is it in the Mac version of Java 7?

Why not use the Apache Common Net library?

Instead of relying on some undocumented can change anytime stuff.

Arne

[toc] | [prev] | [next] | [standalone]


#17272

FromKnute Johnson <nospam@knutejohnson.com>
Date2012-08-06 16:06 -0700
Message-ID<jvpimg$chd$1@dont-email.me>
In reply to#17271
On 8/6/2012 3:02 PM, Arne Vajhøj wrote:
> On 8/6/2012 4:37 PM, Knute Johnson wrote:
>> Anybody know what the plans are for com.sun.ftp?  I've got a project
>> that would work out really well if I could use the FtpClient class from
>> that package.  Is it in the Mac version of Java 7?
>
> Why not use the Apache Common Net library?
>
> Instead of relying on some undocumented can change anytime stuff.
>
> Arne
>
>

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.

-- 

Knute Johnson

[toc] | [prev] | [next] | [standalone]


#17273

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-08-06 19:18 -0400
Message-ID<502050b6$0$286$14726298@news.sunsite.dk>
In reply to#17272
On 8/6/2012 7:06 PM, Knute Johnson wrote:
> On 8/6/2012 3:02 PM, Arne Vajhøj wrote:
>> On 8/6/2012 4:37 PM, Knute Johnson wrote:
>>> Anybody know what the plans are for com.sun.ftp?  I've got a project
>>> that would work out really well if I could use the FtpClient class from
>>> that package.  Is it in the Mac version of Java 7?
>>
>> Why not use the Apache Common Net library?
>>
>> Instead of relying on some undocumented can change anytime stuff.
>
> 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.

The earliest reference I can find for this class is from 2000.

http://www.jguru.com/faq/view.jsp?EID=17357

so it has been kept undocumented and unsupported for 12 years.

But maybe it will be documented within the next 12 years.

:-)

But if they document it then the package name would be changed,
so even that would require a code change.

Arne


[toc] | [prev] | [next] | [standalone]


#17299

FromRobert Klemme <shortcutter@googlemail.com>
Date2012-08-07 21:56 +0200
Message-ID<a8da6qFeo0U1@mid.individual.net>
In reply to#17272
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

[toc] | [prev] | [next] | [standalone]


#17290

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-08-07 03:27 -0700
Message-ID<h5r128tldtvfb4b9v725dob7svcdarvuib@4ax.com>
In reply to#17269
On Mon, 06 Aug 2012 13:37:15 -0700, Knute Johnson
<nospam@knutejohnson.com> wrote, quoted or indirectly quoted someone
who said :

>Anybody know what the plans are for com.sun.ftp?  I've got a project 
>that would work out really well if I could use the FtpClient class from 
>that package.  Is it in the Mac version of Java 7?

There are some other packages you could use.
See http://mindprod.com/jgloss/ftp.html

-- 
Roedy Green Canadian Mind Products
http://mindprod.com
The greatest shortcoming of the human race is our inability to understand the exponential function. 
 ~ Dr. Albert A. Bartlett (born: 1923-03-21 age: 89)
http://www.youtube.com/watch?v=F-QA2rkpBSY

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web