Skip to content

RobertoGraham/encodeuricomponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven Central

encodeuricomponent

Java implementation of ECMAScript 2015 encodeUriComponent

Install

<dependency>
    <groupId>io.github.robertograham</groupId>
    <artifactId>encodeuricomponent</artifactId>
    <version>1.0.0</version>
</dependency>

Usage

The following will print %23this%20is%20a%20test

import io.github.robertograham.encodeuricomponent.encoder.Encoder;

import java.net.URISyntaxException;

public class Example {

    public static void main(String[] args) throws URISyntaxException {
        System.out.println(Encoder.encodeUriComponent("#this is a test"));
    }
}

Tests

The project is covered by 20 JUnit 5 DynamicTests. Pull requests for additional DynamicTests are welcome!

About

Java implementation of ECMAScript 2015 encodeUriComponent

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages