RComponent 网络组件 .java版
提供对FTP, NTP, POP3, SMTP编程组件
下载
http://www.rcomponet.com
Full support for all standard and many optional FTP operations, passive and active modes, and support for a very wide range of FTP servers. cd , madir ,rename, update, download delete operations on directories, including wildcarding.
NTP Client
Get NTP server datetime.
POP3 Client
List all e-mails on that server and delete the e-mails of your choice of the server,Display the mail data
SMTP Client
SMTP client connects to a mail server to send messages. It can relay message delivery to a defined server or directly deliver messages to a recipient's server for urgent message delivery. It supports connection timeouts.
FTPdemo.java
/**
* Supports client-side access. RComponent net component suite demo. version 1.1
* www.rcomponent.com
*/
package demo.ftp;
import com.rcomponent.net.ftp.FtpClient;
import com.rcomponent.util.RLicenseManager;
public class FTPdemo {
public static void main(String[] args) {
RLicenseManager.Registers("RComponentnet", "9assdddfkdccbfabksaeasefkssfrabe");
FtpClient ftpClient = new FtpClient();
ftpClient.setHostName("www.evget.com");
ftpClient.setPort(21);
ftpClient.setUserName("");
ftpClient.setPassword("");
System.out.println("Connect status: " + ftpClient.connect());
System.out.println("Remote file list: " + ftpClient.getFileList());
}
}
NTPDemo.java
/**
* Supports client-side access. RComponent net component suite demo. version 1.1
* www.rcomponent.com
*/
package demo.ntp;
import java.net.InetAddress;
import com.rcomponent.net.ntp.NtpClient;
import com.rcomponent.net.ntp.NtpPacket;
import com.rcomponent.net.ntp.NtpTimeInfo;
import com.rcomponent.net.ntp.NtpTimeStamp;
import com.rcomponent.util.RLicenseManager;
public class NTPDemo {
public static void main(String[] args) {
RLicenseManager.Registers("RComponentnet", "9assdddfkdccbfabksaeasefkssfrabe");
//1 clock.psu.edu
//2 "clock.nc.fukuoka-u.ac.jp";
//3 "ntp.alaska.edu";
NtpTimeInfo info = null;
try {
NtpClient client = new NtpClient();
String s = "clock.psu.edu";
InetAddress hostAddr = InetAddress.getByName(s);
System.out.println(" " + hostAddr.getHostName() + "/" + hostAddr.getHostAddress());
info = client.getTime(hostAddr);
// processResponse(info);
} catch (Exception e) {
e.printStackTrace();
}
NtpPacket message = info.getMessage();
NtpTimeStamp xmitNtpTime = message.getTransmitTimeStamp();
System.out.println(" Transmit Timestamp:\t" + xmitNtpTime + " " + xmitNtpTime.toDateString());
info.computeDetails(); // compute offset/delay if not already done
Long offsetValue = info.getOffset();
Long delayValue = info.getDelay();
String delay = (delayValue == null) ? "N/A" : delayValue.toString();
String offset = (offsetValue == null) ? "N/A" : offsetValue.toString();
//offset in ms
System.out.println(" Roundtrip delay(ms)=" + delay + ", clock offset(ms)=" + offset);
}
}
POP3Demo.java
/**
* Supports client-side access. RComponent net component suite demo. version 1.1
* www.rcomponent.com
*/
package demo.pop3;
import java.util.Vector;
import com.rcomponent.net.pop3.POP3Client;
import com.rcomponent.net.pop3.POP3MessageHeader;
import com.rcomponent.util.RLicenseManager;
public class POP3Demo {
public static void main(String[] args) {
RLicenseManager.Registers("RComponentnet", "9assdddfkdccbfabksaeasefkssfrabe");
String host = "", user = "", password = "";
int port = 21;
POP3Client pop3Client = new POP3Client();
pop3Client.setHostName(host);
pop3Client.setPort(port);
pop3Client.setUserName(user);
pop3Client.setPassword(password);
pop3Client.Connect();
System.out.println(pop3Client.getStatus());
int noOfMessages = pop3Client.getNoOfMessage();
try {
for (int i = 0; i < noOfMessages; i++) {
POP3MessageHeader pop3MessageHeader = pop3Client.getMailHeader(i + 1);
if (pop3MessageHeader != null) {
Vector rowData = new Vector();
rowData.addElement("" + (i + 1));
rowData.addElement(pop3MessageHeader.getFrom());
rowData.addElement(pop3MessageHeader.getSubject());
rowData.addElement(pop3MessageHeader.getDate());
System.out.println(pop3MessageHeader.getDate());
}
}
} catch (Exception e) {
System.out.println("Exception occured from GetMailHeadersThread : " + e);
} finally {
pop3Client.closeConnection();
}
}
}
SMTPDemo.java
/**
* Supports client-side access. RComponent net component suite demo. version 1.1
* www.rcomponent.com
*/
package demo.smtp;
import com.rcomponent.net.message.Mail;
import com.rcomponent.net.smtp.SMTPClient;
import com.rcomponent.util.RLicenseManager;
public class SMTPDemo {
public static void main(String[] args) {
RLicenseManager.Registers("RComponentnet", "9assdddfkdccbfabksaeasefkssfrabe");
Mail message = new Mail();
String from = "", to = "", cc = "", bcc = "", subject = "", body = "", attach = "";
message.setFrom(from);
message.setTo(to);
message.setCc(cc);
message.setBcc(bcc);
message.setSubject(subject);
message.setAttachments(attach);
message.setBody(body);
String host = "", userName = "", password = "";
int port = 21;
boolean authentication = true;
SMTPClient smtpClient = new SMTPClient();
smtpClient.setHostName(host);
smtpClient.setPort(port);
smtpClient.setAuthentication(authentication);
smtpClient.setUserName(userName);
smtpClient.setPassword(password);
smtpClient.setSaveSentMessages(true);
boolean success = false;
if (smtpClient.connect()) {
success = smtpClient.sendMail(message);
smtpClient.closeConnection();
}
System.out.println(smtpClient.getStatus());
if (success) {
String msg = "Mail successfully sent!";
if (true) {
System.out.println("\nMessage has been successfully saved.");
}
} else {
System.out.println("Mail could not sent successfully.\nSee Status for more details.");
}
}
}
RComponent.RTDesign
RComponent.RTDesign 是RComponent为.NET开发人员提供的网络组件,100%.NET实现。提供完整的API,帮助文档。
丰富的Demo和Demo源码。提供免费技术支持。
The powerful runtime form designer - RComponent.RTDDesign 1.1 released!
The RComponent.RTDDesign is the 100% pure .NET class library, which allows you to
runtime design form from your application. The designer component simplifies
creation of design environments by providing the core functionality needed.
The features of RComponent.RTDDesign
1) Runtime creating and resizing .RComponent.RTDDesign provides support to Move,
re-size, and create objects controls at runtime. The controls can be
moved using mouse as well as keyboard..
2) Rich functions Multi-select, edit and designer
events, Relative Align controls, Undo and Redo,
Saving and loading form to/from file, Customizable
designer features.
3) Standard and 3rd party components supporting.
nested controls supporting.
Dynamic component information Tool tip in runtime
design.
4) Pure .NET component written in 100% managed C#.
1.RTDDesign 提供在运行时建立控件和调整控件,容器尺寸.
RTDDesign支持在在运行时用鼠标或键盘移动对象.
2.丰富的编辑功能. 同时选中多个控件,相关对象的对齐,
可对齐到网格,前后层次的调整,
2.动态的
-----------------------------------------------------------------------------------------------------------
RComponent.net (For java)
RComponent.net (For java) 是RComponent为java开发人员提供的网络组件,100%java实现。提供完整的API,帮助文档。
丰富的Demo和Demo源码。提供免费技术支持。
1.FTP Client 组件 目标是向用户提供完备的FTP操作服务。支持所有标准的FTP协议,有主动和被动模式可供选择。 支持
广泛的FTP Server。目录管理有cd,madir ,rename, update, download和delete均有较好表现。
通配符操作也被完整的支持。
2. NTP Client 组件 目标是向用户提供一个跨越广域网或局域网的复杂的同步时间协议组件。支持时钟偏移、时间延迟及差量,
可获得Time Server毫秒级的精度。支持RFC-868规范标准。可选广泛Time Server, 推荐使用pool.ntp.org
3.POP3 Client组件 目标是向用户提供高效、可靠的邮件接收服务.支持所有标准的POP3协议,认可,处理,和更新这三种状态均有较好表现。
可从指定Server端获取Mail列表,Mail时间。可获取Mail主题,Mail内容, 可删除Mail.
4.SMTP Client组件 目标是向用户提供高效、可靠的邮件发送服务。 支持所有标准的邮件传输协议,
支持邮件从Client传输到Server, 或从一个Server传输到另一个Server。支持连接超时。
---------------------------------------------------------------------------------------------------------------------------------------
RComponent.net (For .NET)
RComponent.net (For NET) 是RComponent为.NET开发人员提供的网络组件,100%.NET实现。提供完整的API,帮助文档。
丰富的Demo和Demo源码。提供免费技术支持。
1.FTP Client 组件 目标是向用户提供完备的FTP操作服务。支持所有标准的FTP协议,有主动和被动模式可供选择。 支持
广泛的FTP Server。目录管理有cd,madir ,rename, update, download和delete均有较好表现。
通配符操作也被完整的支持。
2. NTP Client 组件 目标是向用户提供一个跨越广域网或局域网的复杂的同步时间协议组件。支持时钟偏移、时间延迟及差量,
可获得Time Server毫秒级的精度。支持RFC-868规范标准。可选广泛Time Server, 推荐使用pool.ntp.org
3.POP3 Client组件 目标是向用户提供高效、可靠的邮件接收服务.支持所有标准的POP3协议,认可,处理,和更新这三种状态均有较好表现。
可从指定Server端获取Mail列表,Mail时间。可获取Mail主题,Mail内容, 可删除Mail.
4.SMTP Client组件 目标是向用户提供高效、可靠的邮件发送服务。 支持所有标准的邮件传输协议,
支持邮件从Client传输到Server, 或从一个Server传输到另一个Server。支持连接超时。
----------------------------------------------------------------------------------------------------------------------------
RComponent.Swing
RComponent.Swing是RComponent为java开发人员提供的表现层Swing组件集合,100%java实现。提供完整的API,帮助文档。
丰富的Demo和Demo源码。提供免费技术支持。
1.RDatePicker 输入日期数据。
2.RIpAddressField 输入IP数据。
3.RMask 输入指定格式的数据。
4.RTreeComboBox ComboBox的item 可从分组树选取
5.RPopupButton 带Popup功能的button.
6.Print 带preView的Print
7.RBarCode BarCode支持丰富的类型:
Type39,CodaType2dot1, Code128, Code39, Code39_2to1, Ean13, Ean8, ExtendedCode39,
ExtendedCode39_2dot1, Interleaved25, Interleaved25_2to1, MSI , 输出有Clipboard, GIF,Print
8.RCalendar RCalendar 提供Calendar表现.
9.RInspect RInspect是一个强大的组件, 提供在运行期对控件的检视,在demo和属性编辑有广泛的用途。
10.ROutlookBar ROutlookBar是一个强大的信息组织组件,提供动态添加, 编辑, 删除band和item,
11.RShape 提供多种Shape 类型.
12.RTreetable RTreetable提供对table信息进行分组的组件.可自定义item图标。
13. RWizard. RWizard提供良好的控制,支持back.
------------------------------------------------------------------------------------------------------------------------
RComponent.WinForm
RComponent.WinForm是RComponent为.NET开发人员提供的表现层.NET组件集合,100%.NET实现。提供完整的API,帮助文档。
丰富的Demo和Demo源码。提供免费技术支持。
1.RBarCode.
BarCode支持丰富的类型: 2_5_interleaved,
code39, 2_5_industrial, 2_5_matrix, code39 Extended,code128B,code128C,code93,
code93,EAN128C Extended,MSI,PostNet, codebar,code128A EAN8,EAN13,UPC_A,UPC_E0, UPC_E1,
UPC Supp2,UPC Supp5,EAN128A,EAN128B , 能自定义文字和图片, 可以输出 jpg,gif和Clipboard.
2. RShape 能做出各种图片.
Rectangle,Square ,Ellipse ,Circle,Valve,ValveUp, House, TriangleRight, TriangleUp, TriangleLeft,
TriangleDown, ArrowRight, ArrowUp, ArrowLeft, ArrowDown, Diamond, Octagon, Hexagon
UBarUp, UBarLeft, UBarDown, UBarRight, ChairLeft, ChairRight, BowlLeft, BowlRight, BowlDown,
BowlUp, IBar, HBar, fourPoint, Waggle, CloudLeft, CloudRight, DoubleOval, DoubleOvalV, Torus,
Frame, FrameNarrow, LBarUpLeft, LBarUpRight, LBarLeft, LBarRight, twoHoleHoriz, twoHoleVert,
CubeUpRight, CubeUpLeft, CubeDownRight,HexagonFlat。
3.REdItor 控制输入的控件, 数字, 颜色, 字体,IP,时间。
None 普通,DateOnly 时间,PhoneWithArea电话,IpAddress IP地址,SSN ssn号码
Decimald 带小数的数字,Digit 数字。
4. RToolbar 支持xp style的 toolbar
5. ROutlookBarPanel
6. ROutlookBar
7. RNavigationBar
8. RCodeEditor
高级的代码编辑控件,完整支持C#, java, SQL等常见的语言 。语法高亮着色,背景色, 行号。
自定义编辑模式,支持Find/Replace,支持无限步骤的撤消/回复。加载, 保存文件。
丰富的方法.属性。设置背景色,设置字体,得到文档是否被变动过的bool值,得到鼠标位置。
9. RCS2VB
转换.NET C# 代码到.NET VB代码, 完整支持C#和VB的语法。支持注释。
10.RDocker
ToolBox will be add into RComponent.WinForm
http://www.codeproject.com/cs/miscctrl/AgToolBox.asp