Class Utility
java.lang.Object
gov.nasa.pds.objectAccess.utility.Utility
Utility class.
- Author:
- mcayanan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputSourceopenConnection(URL url) static InputStreamopenConnection(URLConnection conn) Method that opens a connection.static voidvalidateCounts(int expected, int actual, String errorMessage)
-
Constructor Details
-
Utility
public Utility()
-
-
Method Details
-
openConnection
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
- Parameters:
url-- Returns:
- Throws:
IOException
-
validateCounts
public static void validateCounts(int expected, int actual, String errorMessage) throws InvalidTableException - Throws:
InvalidTableException
-