2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

Apache Onami Converters - Net

The Net module contains java.net converters implementations.

Users that want to use the Format module, have to add the following dependency in the pom.xml:

<dependency>
  <groupId>org.apache.onami.converters</groupId>
  <artifactId>org.apache.onami.converters.net</artifactId>
  <version>1.0.1-SNAPSHOT</version>
  <scope>compile</scope>
</dependency>

The Converters

InetAddressConverter

Is the converter that converts a java.lang.String representation to a java.net.InetAddress

URIConverter

Is the converter that converts a java.lang.String representation to a java.net.URI.

URLConverter

Is the converter that converts a java.lang.String representation to a java.net.URL, supporting the classpath:// pseudo protocol, to load resources from the the class path.

Users that need to load classpath resources, have to specify the full qualified name of the resource. For example, given the class path resource:

com.acme.myapplication.JDBC.properties

following URLs point to the same resource:

classpath://com/acme/myapplication/JDBC.properties
classpath:///com/acme/myapplication/JDBC.properties