com.anthonyeden.lib.util
Class DefaultAddressed
java.lang.Object
com.anthonyeden.lib.util.DefaultAddressed
- All Implemented Interfaces:
- Addressed
- public class DefaultAddressed
- extends java.lang.Object
- implements Addressed
* Default implementation of the Addressed interface.
*
* @author Anthony Eden
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAddressed
public DefaultAddressed()
getName
public java.lang.String getName()
- Specified by:
getName
in interface Addressed
setName
public void setName(java.lang.String name)
getAddress1
public java.lang.String getAddress1()
- Specified by:
getAddress1
in interface Addressed
setAddress1
public void setAddress1(java.lang.String address1)
getAddress2
public java.lang.String getAddress2()
- Specified by:
getAddress2
in interface Addressed
setAddress2
public void setAddress2(java.lang.String address2)
getCity
public java.lang.String getCity()
- Specified by:
getCity
in interface Addressed
setCity
public void setCity(java.lang.String city)
getState
public java.lang.String getState()
- Specified by:
getState
in interface Addressed
setState
public void setState(java.lang.String state)
getPostalCode
public java.lang.String getPostalCode()
- Specified by:
getPostalCode
in interface Addressed
setPostalCode
public void setPostalCode(java.lang.String postalCode)
getCountry
public java.lang.String getCountry()
- Specified by:
getCountry
in interface Addressed
setCountry
public void setCountry(java.lang.String country)
getEmail
public java.lang.String getEmail()
- Specified by:
getEmail
in interface Addressed
setEmail
public void setEmail(java.lang.String email)
writeTo
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
- * Write the address data to the given OutputStream. This
* implementation does nothing.
*
* @param out The OutputStream to write to
* @throws IOException
- Specified by:
writeTo
in interface Addressed
- Throws:
java.io.IOException
writeTo
public void writeTo(java.io.Writer out)
throws java.io.IOException
- * Write the address data to the given Writer. This implementation
* does nothing.
*
* @param out The Writer
* @throws IOException
- Specified by:
writeTo
in interface Addressed
- Throws:
java.io.IOException
Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.