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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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