[Webfunds-commits] java/webfunds/sox PaymentFactory.java

Jeroen C. van Gelderen gelderen@cypherpunks.ai
Tue, 20 Jun 2000 16:09:18 -0400 (AST)


gelderen    00/06/20 16:09:18

  Added:       webfunds/sox PaymentFactory.java
  Log:
  Initial, simple version.

Revision  Changes    Path
1.1                  java/webfunds/sox/PaymentFactory.java

Index: PaymentFactory.java
===================================================================
/* $Id: PaymentFactory.java,v 1.1 2000/06/20 20:09:17 gelderen Exp $
 *
 * Copyright (c) Systemics Inc. 1995-2000 on behalf of
 * The WebFunds Development Team. All Rights Reserved.
 */
package webfunds.sox;


public final class PaymentFactory
{
    private PaymentFactory() {}


    public static Payment decode(byte[] buf) throws SOXException
    {
        try
        {
            return new Payment(buf);
        }
        catch(Exception e)
        {
            e.printStackTrace();
            throw new SOXException("Payment Decode Error");
        }
    }
}