irc
Class CodingHandler

java.lang.Object
  |
  +--irc.IRCObject
        |
        +--irc.CodingHandler

public class CodingHandler
extends IRCObject

Coding handler for unicode to ascii transfert via socket streams.


Field Summary
static int CODING_ASCII
           
static int CODING_LOCAL_CHARSET
           
static int CODING_PUAP
           
static int CODING_UTF_8
           
 
Fields inherited from class irc.IRCObject
_ircConfiguration
 
Constructor Summary
CodingHandler(IRCConfiguration config, java.io.InputStream is, java.io.OutputStream os)
          Create a new Coding handler, using the given input and output stream.
 
Method Summary
 void close()
          Close the handler, and associated streams.
 java.lang.String read()
          Read a single line from the input stream.
 void write(java.lang.String s)
          Write a single line to the output stream.
 
Methods inherited from class irc.IRCObject
getColor, getIRCConfiguration, getText, getText, getText, getText, getTimeStamp, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODING_ASCII

public static final int CODING_ASCII
See Also:
Constant Field Values

CODING_PUAP

public static final int CODING_PUAP
See Also:
Constant Field Values

CODING_UTF_8

public static final int CODING_UTF_8
See Also:
Constant Field Values

CODING_LOCAL_CHARSET

public static final int CODING_LOCAL_CHARSET
See Also:
Constant Field Values
Constructor Detail

CodingHandler

public CodingHandler(IRCConfiguration config,
                     java.io.InputStream is,
                     java.io.OutputStream os)
Create a new Coding handler, using the given input and output stream.

Parameters:
config - IRCConfiguration objet.
is - inputstream for reading.
os - outputstream for writing.
Method Detail

close

public void close()
           throws java.io.IOException
Close the handler, and associated streams.

java.io.IOException

read

public java.lang.String read()
                      throws java.io.IOException
Read a single line from the input stream.

Returns:
the read line.
java.io.IOException

write

public void write(java.lang.String s)
           throws java.io.IOException
Write a single line to the output stream.

Parameters:
s - the line to write.
java.io.IOException