<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_02) on Thu Sep 24 14:03:02 CST 2009 -->
<TITLE>
Index
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="./stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Index";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="./overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="./overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="./deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="./help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="./index.html?index-all.html" target="_top"><B>FRAMES</B></A>
<A HREF="index-all.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="./allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="./allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<A HREF="#_A_">A</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_I_">I</A> <A HREF="#_N_">N</A> <A HREF="#_O_">O</A> <A HREF="#_P_">P</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_W_">W</A> <HR>
<A NAME="_A_"><!-- --></A><H2>
<B>A</B></H2>
<DL>
<DT><A HREF="./net/xdevelop/nioserver/Notifier.html#addListener(net.xdevelop.nioserver.event.ServerListener)"><B>addListener(ServerListener)</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Notifier.html" title="class in net.xdevelop.nioserver">Notifier</A>
<DD>添加事件监听器
<DT><A HREF="./net/xdevelop/nioserver/Request.html#attach(java.lang.Object)"><B>attach(Object)</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#attachment()"><B>attachment()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
</DL>
<HR>
<A NAME="_E_"><!-- --></A><H2>
<B>E</B></H2>
<DL>
<DT><A HREF="./net/xdevelop/nioserver/event/EventAdapter.html" title="class in net.xdevelop.nioserver.event"><B>EventAdapter</B></A> - Class in <A HREF="./net/xdevelop/nioserver/event/package-summary.html">net.xdevelop.nioserver.event</A><DD>Title: 事件适配器<DT><A HREF="./net/xdevelop/nioserver/event/EventAdapter.html#EventAdapter()"><B>EventAdapter()</B></A> -
Constructor for class net.xdevelop.nioserver.event.<A HREF="./net/xdevelop/nioserver/event/EventAdapter.html" title="class in net.xdevelop.nioserver.event">EventAdapter</A>
<DD>
</DL>
<HR>
<A NAME="_F_"><!-- --></A><H2>
<B>F</B></H2>
<DL>
<DT><A HREF="./net/xdevelop/nioserver/Notifier.html#fireOnAccept()"><B>fireOnAccept()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Notifier.html" title="class in net.xdevelop.nioserver">Notifier</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Notifier.html#fireOnAccepted(net.xdevelop.nioserver.Request)"><B>fireOnAccepted(Request)</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Notifier.html" title="class in net.xdevelop.nioserver">Notifier</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Notifier.html#fireOnClosed(net.xdevelop.nioserver.Request)"><B>fireOnClosed(Request)</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Notifier.html" title="class in net.xdevelop.nioserver">Notifier</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Notifier.html#fireOnError(java.lang.String)"><B>fireOnError(String)</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Notifier.html" title="class in net.xdevelop.nioserver">Notifier</A>
<DD>
</DL>
<HR>
<A NAME="_G_"><!-- --></A><H2>
<B>G</B></H2>
<DL>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#getAddress()"><B>getAddress()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#getDataInput()"><B>getDataInput()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#getKeepAlive()"><B>getKeepAlive()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Notifier.html#getNotifier()"><B>getNotifier()</B></A> -
Static method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Notifier.html" title="class in net.xdevelop.nioserver">Notifier</A>
<DD>获取事件触发器
<DT><A HREF="./net/xdevelop/nioserver/Request.html#getPort()"><B>getPort()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#getSoTimeout()"><B>getSoTimeout()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#getTcpNoDelay()"><B>getTcpNoDelay()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Reader.html#grow(byte[], int)"><B>grow(byte[], int)</B></A> -
Static method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Reader.html" title="class in net.xdevelop.nioserver">Reader</A>
<DD>数组扩容
</DL>
<HR>
<A NAME="_I_"><!-- --></A><H2>
<B>I</B></H2>
<DL>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#isBlocking()"><B>isBlocking()</B></A> -
Method in class net.xdevelop.nioserver.<A HREF="./net/xdevelop/nioserver/Request.html" title="class in net.xdevelop.nioserver">Request</A>
<DD>
<DT><A HREF="./net/xdevelop/nioserver/Request.html#isClosed()"><B>isClosed()</B>
没有合适的资源?快使用搜索试试~ 我知道了~
基于事件的NIO多线程服务器打包
共29个文件
html:25个
package-list:1个
css:1个
需积分: 9 30 下载量 28 浏览量
2009-09-24
14:23:11
上传
评论 1
收藏 57KB RAR 举报
温馨提示
原帖来自:http://www.ibm.com/developerworks/cn/java/l-niosvr/#author 进行了打包,并生成javadoc,方便使用. 该包封装过的NIO比sun本身的更容易处理 server中只有区区几行就搞定了: //创建listener TimeHandler timer = new TimeHandler(); //获取Notifier Notifier notifier = Notifier.getNotifier(); //注册监听 notifier.addListener(timer); //申请端口 Server server = new Server(5100); //启动 Thread tServer = new Thread(server); tServer.start(); 其中的TimeHandler 要自己实现, 内容请参考原文链接.
资源推荐
资源详情
资源评论
收起资源包目录
nioserver.rar (29个子文件)
nioserver
nio.jar 11KB
doc
package-list 54B
deprecated-list.html 5KB
help-doc.html 9KB
allclasses-frame.html 2KB
overview-summary.html 6KB
index.html 1KB
allclasses-noframe.html 2KB
resources
inherit.gif 57B
overview-frame.html 1KB
stylesheet.css 1KB
constant-values.html 5KB
net
xdevelop
nioserver
Response.html 10KB
Reader.html 15KB
package-summary.html 7KB
Writer.html 14KB
Notifier.html 12KB
package-frame.html 2KB
ServerHandler.html 20KB
package-tree.html 7KB
event
package-summary.html 6KB
ServerListener.html 13KB
package-frame.html 1KB
package-tree.html 6KB
EventAdapter.html 19KB
Server.html 12KB
Request.html 16KB
index-all.html 24KB
overview-tree.html 7KB
共 29 条
- 1
资源评论
十分钟年华老去
- 粉丝: 78
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 多机调度问题贪心算法:理论探索与实践应用.zip
- 探索tecreate:软件开发的未来之星.zip
- 打标机项目C#源码连接扫码
- 基于SSM的房屋租赁系统的设计与实现
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功