org.apache.directory.studio.apacheds.model
Class ServersHandlerIO

java.lang.Object
  extended by org.apache.directory.studio.apacheds.model.ServersHandlerIO

public class ServersHandlerIO
extends java.lang.Object

This class is used to read/write the 'servers.xml' file.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
ServersHandlerIO()
           
 
Method Summary
static java.util.List<Server> read(java.io.InputStream stream)
          Reads the given input stream.
static void write(java.util.List<Server> servers, java.io.OutputStream outputStream)
          Writes the list of servers to the given stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServersHandlerIO

public ServersHandlerIO()
Method Detail

read

public static java.util.List<Server> read(java.io.InputStream stream)
                                   throws ServersHandlerIOException
Reads the given input stream.

Parameters:
stream - the input stream
Returns:
Throws:
ServersHandlerIOException

write

public static void write(java.util.List<Server> servers,
                         java.io.OutputStream outputStream)
                  throws java.io.IOException
Writes the list of servers to the given stream.

Parameters:
servers - the servers
outputStream - the output stream
Throws:
java.io.IOException - if an error occurs when writing to the stream


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.