avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder InfoWriter.java SerializedInfoWriter.java
Date Tue, 12 Nov 2002 00:23:00 GMT
donaldp     2002/11/11 16:23:00

  Modified:    info/src/java/org/apache/avalon/framework/tools/infobuilder
                        SerializedInfoWriter.java
  Added:       info/src/java/org/apache/avalon/framework/tools/infobuilder
                        InfoWriter.java
  Log:
  Add in interface abstraction for InfoWriters
  
  Revision  Changes    Path
  1.3       +2 -1      jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder/SerializedInfoWriter.java
  
  Index: SerializedInfoWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder/SerializedInfoWriter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SerializedInfoWriter.java	12 Nov 2002 00:12:38 -0000	1.2
  +++ SerializedInfoWriter.java	12 Nov 2002 00:23:00 -0000	1.3
  @@ -20,6 +20,7 @@
    * @version $Revision$ $Date$
    */
   public class SerializedInfoWriter
  +    implements InfoWriter
   {
       public void writeComponentInfo( final ComponentInfo info,
                                       final OutputStream outputStream )
  
  
  
  1.1                  jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder/InfoWriter.java
  
  Index: InfoWriter.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.avalon.framework.tools.infobuilder;
  
  import java.io.OutputStream;
  import org.apache.avalon.framework.info.ComponentInfo;
  import org.apache.avalon.framework.info.ServiceInfo;
  
  /**
   * Simple interface used to write {@link ComponentInfo}
   * or {@link ServiceInfo} objects to a stream. Different
   * implementations will write to different output formats.
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/12 00:23:00 $
   */
  public interface InfoWriter
  {
      /**
       * Write a {@link ComponentInfo} to a stream
       *
       * @param info the Info to write out
       * @param outputStream the stream to write info to
       * @throws Exception if unable to write info
       */
      void writeComponentInfo( ComponentInfo info,
                               OutputStream outputStream )
          throws Exception;
  
      /**
       * Write a {@link ServiceInfo} to a stream
       *
       * @param info the Info to write out
       * @param outputStream the stream to write info to
       * @throws Exception if unable to write info
       */
      void writeServiceInfo( ServiceInfo info,
                              OutputStream outputStream )
          throws Exception;
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message