Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ciphermod.cipherchat
Class ChatClient  view ChatClient download ChatClient.java

java.lang.Object
  extended bycom.ciphermod.cipherchat.ChatClient

public class ChatClient
extends java.lang.Object


Field Summary
private  com.ciphercore.Client _client
           
private  java.io.DataInputStream _in
           
private  java.io.DataOutputStream _out
           
private  ChatClientReceiver _receiver
           
private  java.lang.String _userName
           
static java.lang.String CHILD_CLASS_NAME
           
 
Constructor Summary
ChatClient(java.lang.String userName, java.lang.String hostName, int port)
           
 
Method Summary
 void close()
           
protected  java.io.InputStream getBaseInputStream()
           
protected  java.io.OutputStream getBaseOutputStream()
           
protected  com.ciphercore.Client getClient()
           
protected  java.io.DataInputStream getIn()
           
protected  java.lang.Object[] getMessages()
           
protected  java.io.DataOutputStream getOut()
           
protected  ChatClientReceiver getReceiver()
           
 java.lang.String getUserName()
           
 void initialize()
           
 void sendMessage(java.lang.String message)
           
protected  void setClient(com.ciphercore.Client client)
           
protected  void setIn(java.io.DataInputStream in)
           
protected  void setOut(java.io.DataOutputStream out)
           
protected  void setReceiver(ChatClientReceiver receiver)
           
protected  void setUserName(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHILD_CLASS_NAME

public static final java.lang.String CHILD_CLASS_NAME
See Also:
Constant Field Values

_userName

private java.lang.String _userName

_receiver

private ChatClientReceiver _receiver

_in

private java.io.DataInputStream _in

_out

private java.io.DataOutputStream _out

_client

private com.ciphercore.Client _client
Constructor Detail

ChatClient

public ChatClient(java.lang.String userName,
                  java.lang.String hostName,
                  int port)
Method Detail

initialize

public void initialize()

sendMessage

public void sendMessage(java.lang.String message)

close

public void close()

setUserName

protected void setUserName(java.lang.String userName)

setReceiver

protected void setReceiver(ChatClientReceiver receiver)

setIn

protected void setIn(java.io.DataInputStream in)

setOut

protected void setOut(java.io.DataOutputStream out)

setClient

protected void setClient(com.ciphercore.Client client)

getUserName

public java.lang.String getUserName()

getReceiver

protected ChatClientReceiver getReceiver()

getIn

protected java.io.DataInputStream getIn()

getOut

protected java.io.DataOutputStream getOut()

getClient

protected com.ciphercore.Client getClient()

getBaseInputStream

protected java.io.InputStream getBaseInputStream()

getBaseOutputStream

protected java.io.OutputStream getBaseOutputStream()

getMessages

protected java.lang.Object[] getMessages()