/** * Loads the products listed in the {@link java.util.Properties} file * represented by the input stream. * * @param pin the input stream * * @return the Vector of <code>AWSDevPayProduct</code>s */ public static Vector load(InputStream pin) throws IOException { if (pin == null) { return new Vector(); } else { Properties prodProps = new Properties(); prodProps.load(pin); return load(prodProps); } }
/** * Loads the products listed in the {@link java.util.Properties} file * represented by the input stream. * * @param pin the input stream * * @return the Vector of <code>AWSDevPayProduct</code>s */ public static Vector load(InputStream pin) throws IOException { if (pin == null) { return new Vector(); } else { Properties prodProps = new Properties(); prodProps.load(pin); return load(prodProps); } }
/** * Loads the products listed in * {@link Constants#DEVPAY_PRODUCTS_PROPERTIES_FILENAME} * * @return the Vector of <code>AWSDevPayProduct</code>s */ public static Vector load() throws IOException { InputStream pin = AWSDevPayProduct.class.getResourceAsStream("/" + Constants.DEVPAY_PRODUCTS_PROPERTIES_FILENAME); Vector ret = new Vector(); if (pin != null) { try { ret = load(pin); } finally { pin.close(); } } return ret; }
/** * Loads the products listed in * {@link Constants#DEVPAY_PRODUCTS_PROPERTIES_FILENAME} * * @return the Vector of <code>AWSDevPayProduct</code>s */ public static Vector load() throws IOException { InputStream pin = AWSDevPayProduct.class.getResourceAsStream("/" + Constants.DEVPAY_PRODUCTS_PROPERTIES_FILENAME); Vector ret = new Vector(); if (pin != null) { try { ret = load(pin); } finally { pin.close(); } } return ret; }
awsProductListComboBox = new JComboBox(AWSDevPayProduct.load()); } catch(Exception e) { awsProductListComboBox = new JComboBox();
awsProductListComboBox = new JComboBox(AWSDevPayProduct.load()); } catch(Exception e) { awsProductListComboBox = new JComboBox();