|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--UserAccount
This class contains the information needed to identify a user account on a particular host.
Constructor Summary | |
UserAccount()
Construct a new UserAccount object with empty Strings for all of the fields. |
|
UserAccount(java.lang.String label,
java.lang.String host,
java.lang.String username,
java.lang.String password)
Construct a new UserAccount object using the supplied strings. |
Method Summary | |
static int |
compare(UserAccount a,
UserAccount b)
Compare two UserAccount objects for order. |
java.lang.String |
getHost()
Return the host for this object. |
java.lang.String |
getLabel()
Return the label for this object. |
java.lang.String |
getPassword()
Return the password for this object. |
java.lang.String |
getUsername()
Return the username for this object. |
void |
readFields(java.io.DataInputStream is)
Read the data for this object from the given DataInputStream. |
void |
setHost(java.lang.String host)
Set the host for this object. |
void |
setLabel(java.lang.String label)
Set the label for this object. |
void |
setPassword(java.lang.String password)
Set the password for this object. |
void |
setUsername(java.lang.String username)
Set the username for this object. |
void |
writeFields(java.io.DataOutputStream os)
Write the data for this object out onto the given DataOutputStream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserAccount()
public UserAccount(java.lang.String label, java.lang.String host, java.lang.String username, java.lang.String password)
label
- the display name of this accounthost
- the host computer for which this account
name is definedusername
- the name associated with this userpassword
- the password for this accountMethod Detail |
public java.lang.String getLabel()
public java.lang.String getHost()
public java.lang.String getUsername()
public java.lang.String getPassword()
public void setLabel(java.lang.String label)
label
- the label Stringpublic void setHost(java.lang.String host)
host
- the host Stringpublic void setUsername(java.lang.String username)
username
- the username Stringpublic void setPassword(java.lang.String password)
password
- the password Stringpublic void writeFields(java.io.DataOutputStream os) throws java.io.IOException
writeFields
in interface Storable
os
- the DataOutputStream on which to write the data fields
for this object.
java.io.IOException
- if an error occurs while writingpublic void readFields(java.io.DataInputStream is) throws java.io.IOException
readFields
in interface Storable
is
- the DataInputStream from which to read the data fields
for this object.
java.io.IOException
- if an error occurs while readingpublic static int compare(UserAccount a, UserAccount b)
a
- the first object in the comparisonb
- the second object in the comparison
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |