gov.nasa.pds.tools.util
Class Utility

java.lang.Object
  extended by gov.nasa.pds.tools.util.Utility

public class Utility
extends Object

Utility class.

Author:
mcayanan

Constructor Summary
Utility()
           
 
Method Summary
static InputStream openConnection(URLConnection conn)
          Method that opens a connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utility

public Utility()
Method Detail

openConnection

public static InputStream openConnection(URLConnection conn)
                                  throws IOException
Method that opens a connection. Supports redirects.

Parameters:
conn - URL Connection
Returns:
input stream.
Throws:
IOException - If an error occurred while opening the stream.


Copyright © 2010–2014 Planetary Data System. All rights reserved.