org.apache.commons.convert
Class NetConverters.URIToURL

java.lang.Object
  extended by org.apache.commons.convert.AbstractConverter<URI,URL>
      extended by org.apache.commons.convert.NetConverters.URIToURL
All Implemented Interfaces:
Converter<URI,URL>, ConverterLoader
Enclosing class:
NetConverters

public static class NetConverters.URIToURL
extends AbstractConverter<URI,URL>

An object that converts a URI to a URL.


Constructor Summary
NetConverters.URIToURL()
           
 
Method Summary
 URL convert(URI obj)
          Converts obj to T.
 
Methods inherited from class org.apache.commons.convert.AbstractConverter
canConvert, getSourceClass, getTargetClass, loadConverters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetConverters.URIToURL

public NetConverters.URIToURL()
Method Detail

convert

public URL convert(URI obj)
            throws ConversionException
Description copied from interface: Converter
Converts obj to T.

Parameters:
obj - The source Object to convert
Returns:
The converted Object
Throws:
ConversionException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.