Where is the URLEncoder in JAVA today?

Hello,

Where is the java URLEncoder in 1.5

I can see it in java.net. etc... but it is depricated. won't let me use it.

Also

Where is the Base64 Encoder Decoder in 1.5 today.

Or can you please tell me how to look for these things so I don't bother you anymore.

I am very new to Java

Thank you,

sqlagentman

[362 byte] By [sqlagentmana] at [2007-10-3 8:54:01]
# 1

> Hello,

>

> Where is the java URLEncoder in 1.5

> I can see it in java.net. etc... but it is

> depricated. won't let me use it.

If you read the API, you'll see what the replacement method call is...

> Also

>

> Where is the Base64 Encoder Decoder in 1.5 today.

the Base64 classes were part of the unsupported com.sun.* libraries. The Jakarta Commons provide a codec library that you can use to do Base64.

bckrispia at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...
# 2
Thank you for the reply,If I read the API... where? I am so new to java I have no clue.can you help please?sqlagentman
sqlagentmana at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...
# 3

> >

> > Where is the Base64 Encoder Decoder in 1.5 today.

>

> the Base64 classes were part of the unsupported

> com.sun.* libraries.

There is a documented way although it is very odd...

http://forum.java.sun.com/thread.jspa?threadID=477461&start=0&tstart=0

jschella at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...
# 4
[url= http://java.sun.com/j2se/1.5.0/docs/api/]Java API[/url][url= http://jakarta.apache.org/commons/codec/]Jakarta Commons Codec[/url]
bckrispia at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...
# 5
> There is a documented way although it is very odd...The Jakarta package is straightforward enough to use. ;)
bckrispia at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...
# 6
Thanks everyone for your help.New questions coming soon to a screen near you...Thanks again,sqlagentman
sqlagentmana at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...
# 7

bckrispi

I went to JAVA API link and the only Depricated thing about

java.net.URLEncode(...) is the constructure that takes only one Parameter.

But Still could not get the constructor with two Params to be accepted.

Error was Class not found java.net ? !!!

any ways I used the jakarta package and that is good enough for me.

Thank you,

sqlagentman

sqlagentmana at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...
# 8
Check your import statements.
bckrispia at 2007-7-15 4:03:56 > top of Java-index,Java Essentials,Java Programming...