Spread the love

All About Class URLEncode in Java

Spread the love

Class URLEncode in Java
Class URLEncode in Java

URLEncode class contains an utility method for converting a String into a MIME format called “x-www-form-urlencoded” format.To convert a String,each character is examined in turn for the following cases..

  • The ASCII characters ‘a’ through ‘z’ ,’A’ through ‘Z’ and ‘0’ through ‘9’ remain the same.
  • The space character ‘ ‘ is converted into a plus sign(+).
  • All other characters are converted into three character String “%xy” where xy is the two digit hexadecimal representation of the lower 16 bit of the character.

The structure of the URLEncode class is given as:

public class java.net.URLEncode extends java.lang.Object{
//Methods:
public static String encode(String str);
//translate a String str into x-www-form-urlencoded format
}
 




Spread the love
READ  ENUM Concept Simplified In Java
Animesh Chatterjeehttps://techtravelhub.com/
I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on ani01104@gamil.com

Related Articles

Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Recent Posts

Super Keyword in Java Simplified

Super Keyword Super Keyword in Java Simplified: Java defines a special...

Learn Object Repository in UFT in An Efficient and Fast Manner

Object Repository in UFT The post will cover the following...

Learn What Primary Tools For Test Automation

Primary Tools For Test Automation According to the Gartner report...

EDITOR PICKS


Spread the love