001 package com.croftsoft.core.io; 002 003 import java.io.*; 004 005 /********************************************************************* 006 * A generic interface for Object encoders. 007 * 008 * @see 009 * Parser 010 * @version 011 * 2003-05-13 012 * @since 013 * 2000-03-23 014 * @author 015 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 016 *********************************************************************/ 017 018 public interface Encoder 019 ////////////////////////////////////////////////////////////////////// 020 ////////////////////////////////////////////////////////////////////// 021 { 022 023 public byte [ ] encode ( Object object ) 024 throws IOException; 025 026 ////////////////////////////////////////////////////////////////////// 027 ////////////////////////////////////////////////////////////////////// 028 }