| 
 | Esri Geoportal Server 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.server.csw.client.Utils
public class Utils
The Class Utils. Utility class. Cannot be instantiated. All methods will be static
| Field Summary | |
|---|---|
| static Logger | LOGClass Logger | 
| Method Summary | |
|---|---|
| static double | chkDbl(String s,
       double defaultVal)Converts a string to a double value. | 
| static int | chkInt(String s,
       int defaultVal)Chk int. | 
| static String | chkStr(String string)If string is null, returns empty string, else returns trimmed string. | 
| static void | close(InputStream inStream)Close InputStream. | 
| static void | close(OutputStream oStream)Close OutputStream. | 
| static void | close(Reader reader)Close a reader input . | 
| static String | getInputString(BufferedInputStream bIStream)Gets the input string from an InputStream. | 
| static String | getInputString2(InputStream inputStream)Gets the input string2. | 
| static boolean | isUrl(Object obj)Checks if is url. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static Logger LOG
| Method Detail | 
|---|
public static String chkStr(String string)
string - the string to be checked
public static double chkDbl(String s,
                            double defaultVal)
s - the string to convertdefaultVal - the default value to return if the string is invalid
public static int chkInt(String s,
                         int defaultVal)
s - The string value to be checkeddefaultVal - the default val
public static String getInputString(BufferedInputStream bIStream)
bIStream - the input Stream.  Will not be closed after function and
 will be available for reading
public static String getInputString2(InputStream inputStream)
                              throws IOException
inputStream - the input stream. Will be closed after function.
IOException - Signals that an I/O exception has occurred.public static boolean isUrl(Object obj)
obj - the obj (toString method will be called)
public static void close(InputStream inStream)
inStream - the input Streampublic static void close(OutputStream oStream)
oStream - the input Streampublic static void close(Reader reader)
reader - the reader| 
 | Esri Geoportal Server 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||