コード例 #1
0
  public AFGHGlobalParameters(String cp) {
    try {
      curveParams = new DefaultCurveParameters();

      ByteArrayInputStream is = new ByteArrayInputStream(cp.getBytes());
      ((DefaultCurveParameters) curveParams).load(is);
      initialize(curveParams);
    } catch (Exception ex) {
      Logger.getLogger(AFGHGlobalParameters.class.getName()).log(Level.SEVERE, null, ex);
    }
  }
コード例 #2
0
 public AFGHGlobalParameters(InputStream is) {
   curveParams = new DefaultCurveParameters();
   ((DefaultCurveParameters) curveParams).load(is);
   initialize(curveParams);
 }