org.apache.lucene.gdata.server.administration
Class AccountBuilder

java.lang.Object
  extended by org.apache.lucene.gdata.server.administration.AccountBuilder

public class AccountBuilder
extends Object

Helper class to create GDataAccount instances from a xml stream provided via a Reader instance.

Author:
Simon Willnauer

Constructor Summary
AccountBuilder()
           
 
Method Summary
static GDataAccount buildAccount(Reader reader)
          Reads the xml from the provided reader and binds the values to the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountBuilder

public AccountBuilder()
Method Detail

buildAccount

public static GDataAccount buildAccount(Reader reader)
                                 throws IOException,
                                        SAXException
Reads the xml from the provided reader and binds the values to the

Parameters:
reader - - the reader to read the xml from
Returns:
- the GDataAccount
Throws:
IOException - - if an IOException occurs
SAXException - - if the xml can not be parsed by the sax reader


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.