FileDocCategorySizeDatePackage
BytesValue.javaAPI DocExample519Thu Jun 28 16:14:16 BST 2001com.ora.jsp.sql.value

BytesValue.java

package com.ora.jsp.sql.value;

import com.ora.jsp.sql.Value;

/**
 * This class represents a byte[] value used by the SQL tags.
 *
 * @author Hans Bergsten, Gefion software <hans@gefionsoftware.com>
 * @version 1.0
 */
public class BytesValue extends Value {
    private byte[] value;

    public BytesValue(byte[] value) {
        this.value = value;
    }

    public byte[] getBytes() {
        return value;
    }

    public String getString() {
        return new String(value);
    }
}