public final Properties readConfiguration()
        throws Exception
    {
        URLConnection connection = null;
        InputStream input = null;
        try
        {
            connection = url.openConnection();
            connection.setUseCaches( false );
            input = connection.getInputStream();

            Properties properties = new Properties();
            if ( isXML )
            {
                properties.loadFromXML( input );
            }
            else
            {
                properties.load( input );
            }

            return properties;
        }
        finally
        {
            if ( connection != null && ( connection instanceof HttpURLConnection ) )
            {
                ( (HttpURLConnection) connection ).disconnect();
            }
            if ( input != null )
            {
                try
                {
                    input.close();
                }
                catch ( IOException e )
                {
                    // close quietly
                }
            }
        }
    }
public final Properties readConfiguration ( ) throws Exception { URLConnection connection = null ; InputStream input = null ; try { connection = url . openConnection ( ) ; connection . setUseCaches ( false ) ; input = connection . getInputStream ( ) ; Properties properties = new Properties ( ) ; if ( isXML ) { properties . loadFromXML ( input ) ; } else { properties . load ( input ) ; } return properties ; } finally { if ( connection != null && ( connection instanceof HttpURLConnection ) ) { ( ( HttpURLConnection ) connection ) . disconnect ( ) ; } if ( input != null ) { try { input . close ( ) ; } catch ( IOException e ) { } } } }
@return
@throws Exception