Coverage Report - net.wotonomy.foundation.xml.XMLEncoder
 
Classes in this File Line Coverage Branch Coverage Complexity
XMLEncoder
N/A 
N/A 
1
 
 1  
 /*
 2  
 Wotonomy: OpenStep design patterns for pure Java applications.
 3  
 Copyright (C) 2000 Intersect Software Corporation
 4  
 
 5  
 This library is free software; you can redistribute it and/or
 6  
 modify it under the terms of the GNU Lesser General Public
 7  
 License as published by the Free Software Foundation; either
 8  
 version 2.1 of the License, or (at your option) any later version.
 9  
 
 10  
 This library is distributed in the hope that it will be useful,
 11  
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 13  
 Lesser General Public License for more details.
 14  
 
 15  
 You should have received a copy of the GNU Lesser General Public
 16  
 License along with this library; if not, see http://www.gnu.org
 17  
 */
 18  
 
 19  
 package net.wotonomy.foundation.xml;
 20  
 
 21  
 import java.io.OutputStream;
 22  
 
 23  
 /**
 24  
 * Defines an interface for classes that can serialize
 25  
 * an arbitrary java object into XML format.
 26  
 */
 27  
 public interface XMLEncoder
 28  
 {
 29  
     /**
 30  
     * Encodes an object to the specified output stream as XML.
 31  
     * @param anObject The object to be serialized to XML format.
 32  
     * @param anOutputStream The output stream to which the object
 33  
     * will be written.  The stream will not be flushed nor closed.
 34  
     */ 
 35  
     public void encode( Object anObject, OutputStream anOutputStream );
 36  
 }
 37  
 
 38  
 /*
 39  
  * $Log$
 40  
  * Revision 1.1  2006/02/18 22:21:10  cgruber
 41  
  * Add in simple xml interfaces from net.wotonomy.xml project.
 42  
  * Add cobertura.ser to .cvsignore.  God I wish sourceforge would move on this subversion thing...
 43  
  *
 44  
  * Revision 1.1  2006/02/16 13:22:22  cgruber
 45  
  * Check in all sources in eclipse-friendly maven-enabled packages.
 46  
  *
 47  
  * Revision 1.2  2001/02/06 14:34:23  mpowers
 48  
  * Forgot to rename the package declarations.
 49  
  *
 50  
  * Revision 1.1  2001/02/06 14:31:19  mpowers
 51  
  * Moving XML utilities from util to xml package.
 52  
  *
 53  
  * Revision 1.1.1.1  2000/12/21 15:52:33  mpowers
 54  
  * Contributing wotonomy.
 55  
  *
 56  
  * Revision 1.2  2000/12/20 16:25:48  michael
 57  
  * Added log to all files.
 58  
  *
 59  
  *
 60  
  */
 61