public static void main(String arg[]) throws IOException { CommonCodeTable ct = readCommonCodes(Table.C1); for (TableEntry entry : ct.entries) System.out.printf("%s%n", entry); System.out.printf("%n%s%n", ct.state()); } }
public static void main(String arg[]) throws IOException { CommonCodeTable ct = readCommonCodes(Table.C1); for (TableEntry entry : ct.entries) System.out.printf("%s%n", entry); System.out.printf("%n%s%n", ct.state()); } }
public static void main(String arg[]) throws IOException { CommonCodeTable ct = readCommonCodes(Table.C1); for (TableEntry entry : ct.entries) System.out.printf("%s%n", entry); System.out.printf("%n%s%n", ct.state()); } }
public static CommonCodeTable getTable(int tableNo) { CommonCodeTable cct = tableMap.get(tableNo); if (cct == null) { Table want = null; for (Table t : Table.values()) if (t.num == tableNo) { want = t; break; } if (want == null) throw new IllegalStateException("Unknown wmo common code table number= "+tableNo); try { cct = readCommonCodes(want); tableMap.put(tableNo, cct); } catch (IOException e) { throw new IllegalStateException("Cant open wmo common code table "+want); } } return cct; }
public static CommonCodeTable getTable(int tableNo) { CommonCodeTable cct = tableMap.get(tableNo); if (cct == null) { Table want = null; for (Table t : Table.values()) if (t.num == tableNo) { want = t; break; } if (want == null) throw new IllegalStateException("Unknown wmo common code table number= "+tableNo); try { cct = readCommonCodes(want); tableMap.put(tableNo, cct); } catch (IOException e) { throw new IllegalStateException("Cant open wmo common code table "+want); } } return cct; }
public static CommonCodeTable getTable(int tableNo) { CommonCodeTable cct = tableMap.get(tableNo); if (cct == null) { Table want = null; for (Table t : Table.values()) if (t.num == tableNo) { want = t; break; } if (want == null) throw new IllegalStateException("Unknown wmo common code table number= "+tableNo); try { cct = readCommonCodes(want); tableMap.put(tableNo, cct); } catch (IOException e) { throw new IllegalStateException("Cant open wmo common code table "+want); } } return cct; }