Class Utility
- java.lang.Object
- 
- gov.nasa.pds.objectAccess.utility.Utility
 
- 
 public class Utility extends java.lang.ObjectUtility class.- Author:
- mcayanan
 
- 
- 
Constructor SummaryConstructors Constructor Description Utility()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static org.xml.sax.InputSourceopenConnection(java.net.URL url)static java.io.InputStreamopenConnection(java.net.URLConnection conn)Method that opens a connection.static voidvalidateCounts(int expected, int actual, java.lang.String errorMessage)
 
- 
- 
- 
Method Detail- 
openConnectionpublic static java.io.InputStream openConnection(java.net.URLConnection conn) throws java.io.IOExceptionMethod that opens a connection. Supports redirects.- Parameters:
- conn- URL Connection
- Returns:
- input stream.
- Throws:
- java.io.IOException- If an error occurred while opening the stream.
 
 - 
openConnectionpublic static org.xml.sax.InputSource openConnection(java.net.URL url) throws java.io.IOException- Parameters:
- url-
- Returns:
- Throws:
- java.io.IOException
 
 - 
validateCountspublic static void validateCounts(int expected, int actual, java.lang.String errorMessage) throws InvalidTableException- Throws:
- InvalidTableException
 
 
- 
 
-