/*
 * @(#)Codec.java
 *
 * Copyright (c) 2002-2003 JSCAPE
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JSCAPE. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JSCAPE.
 */

package com.jscape.inet.util;


/**
 * Defines methods for encoding and decoding of data.
 */
public interface Codec {

    char[] encode(byte[] contents);

    byte[] decode(char[] contents)
            throws Exception;
} 

