net.sf.jqql
Enum QQPort
java.lang.Object
java.lang.Enum<QQPort>
net.sf.jqql.QQPort
- All Implemented Interfaces:
- Serializable, Comparable<QQPort>
public enum QQPort
- extends Enum<QQPort>
some default port's difinition of QQ
一些缺çœçš„QQ端å£å®šä¹‰
- Author:
- luma
MAIN
public static final QQPort MAIN
CLUSTER_CUSTOM_FACE
public static final QQPort CLUSTER_CUSTOM_FACE
CUSTOM_HEAD_INFO
public static final QQPort CUSTOM_HEAD_INFO
CUSTOM_HEAD_DATA
public static final QQPort CUSTOM_HEAD_DATA
DISK
public static final QQPort DISK
name
public String name
values
public static final QQPort[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(QQPort c : QQPort.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static QQPort valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
create
public IConnection create(QQClient client,
InetSocketAddress server,
InetSocketAddress proxy,
boolean start)
throws IOException
- Create port
创建Port
- Parameters:
client
- QQClient Object
QQClient对象server
- Server Address
æœåŠ¡å™¨åœ°å€proxy
- Agent Address ,if no ,set it null.
代ç†åœ°å€ï¼Œå¦‚æžœä¸ç”¨ä»£ç†ï¼Œä¸ºnullstart
- true indicate start at once
true表示立刻å¯åЍ
- Returns:
- IPort Object, if create it fail ,return null.
IPort对象,如果创建失败,返回null
- Throws:
IOException
UnknownHostException
create
public IConnection create(QQClient client,
InetSocketAddress server,
InetSocketAddress proxy,
String username,
String password,
boolean start)
throws IOException,
UnknownHostException
- Create port
创建Port
- Parameters:
client
- QQClient Object
QQClient对象server
- Server Address
æœåŠ¡å™¨åœ°å€proxy
- Agent Address ,if no ,set it null.
代ç†åœ°å€ï¼Œå¦‚æžœä¸ç”¨ä»£ç†ï¼Œä¸ºnullusername
- username of Agent
代ç†ç”¨æˆ·åpassword
- password of Agent
代ç†å¯†ç start
- true indicate start at once
true表示立刻å¯åЍ
- Returns:
- IPort Object, if create it fail ,return null.
IPort对象,如果创建失败,返回null
- Throws:
IOException
UnknownHostException