Package jodd.typeconverter.impl

Examples of jodd.typeconverter.impl.URLConverter


    register(Class.class, new ClassConverter());
    register(Class[].class, new ClassArrayConverter(this));

    register(URI.class, new URIConverter());
    register(URL.class, new URLConverter());

    register(Locale.class, new LocaleConverter());
    register(TimeZone.class, new TimeZoneConverter());

    if (Jodd.isModuleLoaded(Jodd.UPLOAD)) {
View Full Code Here


    register(Class.class, new ClassConverter());
    register(Class[].class, new ClassArrayConverter(this));

    register(URI.class, new URIConverter());
    register(URL.class, new URLConverter());

    register(Locale.class, new LocaleConverter());
    register(TimeZone.class, new TimeZoneConverter());
  }
View Full Code Here

public class URLConverterTest {

  @Test
  public void testConversion() {
    URLConverter urlConverter = new URLConverter();

    File f = new File("/folder/file.ext");
    URL url = urlConverter.convert(f);
    assertNotNull(url);
  }
View Full Code Here

TOP

Related Classes of jodd.typeconverter.impl.URLConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.