Пример #1
0
  public final Properties getResourceAsProperties(String sName) {

    Properties p = new Properties();
    try {
      byte[] img = getResourceAsBinary(sName);
      if (img != null) {
        p.loadFromXML(new ByteArrayInputStream(img));
      }
    } catch (IOException e) {
    }
    return p;
  }