Class Utility

java.lang.Object
gov.nasa.pds.objectAccess.utility.Utility

public class Utility
extends Object
Utility class.
Author:
mcayanan
  • Constructor Details

    • Utility

      public Utility()
  • Method Details

    • 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.
    • openConnection

      public static InputSource openConnection​(URL url) throws IOException
      Parameters:
      url -
      Returns:
      Throws:
      IOException