/*
 * @(#)BinaryDataFormat.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.util;

/**
 * Binary data format.
 *
 * @author Alex
 * @version 1.0
 * @see <a href="BinaryDataFormat.java.html">Source code</a>
 */
public interface BinaryDataFormat {

    /**
     * Format binary data to the readble form.
     *
     * @param data target data
     *
     * @return readble data string
     */
    String format(byte[] data);

    /**
     * Restores data from the formatted form.
     *
     * @param data data string
     *
     * @return restored data
     */
    byte[] parse(String data);

}
