public class ServerMethods extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
ServerMethods.CompareKeyDescend |
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
dateFormat |
protected static SimpleDateFormat |
dateFormatISO |
static String |
epic |
static Pattern |
p_all_i |
static Pattern |
p_ascii_i |
static Pattern |
p_B_D8 |
static Pattern |
p_B_pound |
static Pattern |
p_catalog_i |
static Pattern |
p_config |
static Pattern |
p_dataset |
static Pattern |
p_DODS_i |
static Pattern |
p_html_i |
static Pattern |
p_HTTPServer_i |
static Pattern |
p_isodate |
static Pattern |
p_latitude_longitude |
static Pattern |
p_name_value2 |
static Pattern |
p_nexrad2 |
static Pattern |
p_qc_or_dqc_i |
static Pattern |
p_space20 |
static Pattern |
p_spaces |
static Pattern |
p_station_name |
static Pattern |
p_stn_i |
static Pattern |
p_value2 |
static Pattern |
p_xml_i |
static Pattern |
p_yymmdd_hhmm |
static Pattern |
p_yyyymmdd |
static Pattern |
p_yyyymmdd_hhmm |
| Constructor and Description |
|---|
ServerMethods(org.slf4j.Logger log) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
convert4to3stations(List<String> stations) |
String |
findClosestStation(double lat,
double lon,
List<Station> stations)
Find the station closest to the specified point.
|
String[] |
getDAYS(String dirS,
PrintWriter pw) |
static InputStream |
getInputStream(String filename)
Get an input stream for the filename
|
static InputStream |
getInputStream(String filename,
Class origin)
Get an input stream for the filename
|
static BufferedReader |
getInputStreamReader(String filename)
Get an input stream reader for the filename
|
String |
getObTimeISO(String product) |
HashMap<String,Station> |
getStationMap(List<Station> list) |
List<String> |
getStationNames(LatLonRect boundingBox,
List<Station> stations)
Get the list of station names that are contained within the bounding box.
|
List<String> |
getStationNames(List<Station> stations) |
List<Station> |
getStations(String stnLocation) |
String |
hhmm(String dateTime) |
boolean |
isValidDate(String dateReport,
String dateStart,
String dateEnd) |
boolean |
isValidDay(String dateDir,
String yyyymmddStart,
String yyyymmddEnd) |
public static final Pattern p_all_i
public static final Pattern p_ascii_i
public static final Pattern p_B_pound
public static final Pattern p_catalog_i
public static final Pattern p_config
public static final Pattern p_dataset
public static final Pattern p_B_D8
public static final Pattern p_DODS_i
public static final Pattern p_HTTPServer_i
public static final Pattern p_html_i
public static final Pattern p_isodate
public static final Pattern p_latitude_longitude
public static final Pattern p_name_value2
public static final Pattern p_nexrad2
public static final Pattern p_qc_or_dqc_i
public static final Pattern p_space20
public static final Pattern p_spaces
public static final Pattern p_station_name
public static final Pattern p_stn_i
public static final Pattern p_value2
public static final Pattern p_xml_i
public static final Pattern p_yyyymmdd
public static final Pattern p_yymmdd_hhmm
public static final Pattern p_yyyymmdd_hhmm
public static final String epic
protected static SimpleDateFormat dateFormatISO
protected static SimpleDateFormat dateFormat
public String[] getDAYS(String dirS, PrintWriter pw)
public List<String> getStationNames(LatLonRect boundingBox, List<Station> stations)
boundingBox - lat/lon bounding boxIOException - if read errorpublic String findClosestStation(double lat, double lon, List<Station> stations)
lat - latitude valuelon - longitude valueIOException - if read errorpublic static BufferedReader getInputStreamReader(String filename) throws FileNotFoundException, IOException
filename - name of fileFileNotFoundException - couldn't find the fileIOException - problem opening streampublic static InputStream getInputStream(String filename) throws IOException
filename - name of fileFileNotFoundException - couldn't find the fileIOException - problem opening streampublic static InputStream getInputStream(String filename, Class origin) throws IOException
filename - name of fileorigin - relative origin point for file locationFileNotFoundException - couldn't find the fileIOException - problem opening streamCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.