JAVA API与.NetAPI

C# 搜索  .NET Framework 类库

java.lang包

java.lang


java


.net


Boolean


System.Boolean


Byte


System. Byte


Character


System.Char


Class


System.Type


Double


System.Double


Float


System.Single


Integer


System.Int32


Long


System.Int64


Math


System.Math


Object


System.Object


Process


System. Diagnostics .Process


Runtime


System. Diagnostics .Process


Short


System.Int16


StrictMath


System.Math


Strng


System.Strng


StringBuffer


System. Text .StringBuffer


Thread


System. Threading .Thread


ThreadLocal


System.LocalDataStoreSlot

java.lang.reflect


java


.net


AccessibleObject


System.reflection.MemberInfo


Array


System. Array


Constructor


System.reflection.ConstructorInfo


Field


System.reflection.FieldInfo


Method


System.reflection.MethodInfo


Modifier


System.reflection.MethodAttributes


ReflectdPermission


System. Security . Permissions .ReflectdPermission

java.lang.ref


java


.net


WeakReference


System.WeakReference

java.util包

java.util


java


.net


AbstractColletion


System.Collections.CollectionsBase


ArrayList


System.Collections.ArrayList


Arrays


System.Arrays


BitSet


System.Collections.BitArray


Calendar


System.Globalization.Calendar


Currency


System.Globalization.RegionInfo


Date


System.Datetime


Dictionary


System.Collections.DictionaryBase


EventObject


System.EventArgs


GregorianCalendar


System.Globalization.GregorianCalendar


HashMap


System.Collections.HashMap


Hashtable


System.Collections.HashMap


ListResourseBundle


System.Resources.ResourceManger


Locale


System.Globalization.CultureInfo


Random


System.Random


ResourseBundle


System.Resources.ResourceSet


SimpleTimeZone


System.Datetime


Stack


System.Collections.Stack


Timer


System.Threading.Timer


TimerTask


System.Threading.TimerCallback


TimeZone


System.DataTime


TreeSet


System.Collections.SortedList


Vector


System.Collections.ArrayList

java.util.regex


java


.net


Matcher


System.Text.RegularExpressions.Match

System.Text.RegularExpressions.MatchCollection

System.Text.RegularExpressions.Group

System.Text.RegularExpressions.GroupCollection


Pattern


System.Text.RegularExpressions.Regex

System.Text.RegularExpressions.RegexCompilationInfo

System.Text.RegularExpressions.RegexOption


PatternSyntaxExcetpion


System. ArgumentExcetion

java.util.logging/java.util.jar/java.util.zip/java.util.pref 包中的类在.NET中没有与之对应的部分

java.io包


java


.net


BufferedInputStream


System.IO.BufferedStream


BufferedOutputStream


System.IO.BufferedStream


BufferedReader


System.IO.StreamReader


BufferedWriter


System.IO.StreamWriter


ByteArrayInputStream


System.IO.MemoryStream


ByteArrayOutputStream


System.IO.MemoryStream


CharArrayReader


System.IO.StreamReader


CharArrayWriter


System.IO.StreamWriter


DataInputStream


System.IO.BinaryReader


DataOutputStream


System.IO.BinaryWriter


File


System.IO.File


FileInputStream


System.IO.FileStream


FileOutputStream


System.IO.FileStream


FileReader


System.IO.StreamReader


FileWriter


System.IO.StreamWriter


InputStream


System.IO.Stream


OutputStream


System.IO.Stream


PrintStream


System.IO.StreamWriter


PrintWriter


System.IO.StreamWriter


PushbackInputStream


System.IO.StreamReader


PushbackOutputStream


System.IO.StreamReader


RamdomAccessFile


System.IO.FileStream


StringBufferInputstream


System.IO.StringReader


StringReader


System.IO.StringReader


StringWriter


System.IO.StringWriter

java.sql包

.net 中没有与javax.sql包直接对应的部分,System.Data命名空间提供了连接池和事务处理类。

java的Rowset类在某些方面与.net的DataDet类相似


java


.net


Blob


System.Data.Sqlclient.SqlDataReader

System.Data.OleDb.OleDbDataReader


CallableStatement


System.Data.Sqlclient.Sqlcommand

System.Data.OleDb.OleDbcommand


Clob


System.Data.Sqlclient.SqlDataReader

System.Data.OleDb.OleDbDataReader


Connection


System.Data.Sqlclient.Sql

System.Data.OleDb.OleDb


Date


System.Data. SqlTypes . SqlDateTime


ParameterMetaData


System.Data.Sqlclient.SqlParameter

System.Data.OleDb.OleDbParameter


PreparedStatement


System.Data.Sqlclient.SqlCommand

System.Data.OleDb.OleDbCommand


ResultSet


System.Data.Sqlclient.SqlDataReader

System.Data.OleDb.OleDbDataReader


ResultSetMetaData


System.Data.Sqlclient.SqlDataReader

System.Data.OleDb.OleDbDataReader


Savepoint


System.Data.Sqlclient. SqlTransaction


SQLPermission


System.Data.Sqlclient.SqlclientPermission

System.Data.OleDb.OleDbPermission


Statement


System.Data.Sqlclient.SqlParameter

System.Data.OleDb.OleDbCommand


Time


System.Data. SqlTypes . SqlDateTime


Types


System.Data.DbTypes

java.text包


java


.net


DataFormat


System.DateTime


DateFomatSymbols


System.Globalization.DateaTimeFormatInfo


NumberFormat


System.Globalization.NumberFormatInfo


SimpleDateFormat


System.Globalization.DateTimeFormatInfo


StringCharacterIterator


System.IEnumerator (System,String)

org.w3c.dom包


java


.net


Attr


System.Xml.XmlAttribute


CdatSection


System.Xml.XmlCDataSetion


CharacterData


System.Xml.XmlCharacterData


Comment


System.Xml.XmlComment


Document


System.Xml.XmlDocument


DocumentFragment


System.Xml.XmlDocumentFragment


DocumentType


System.Xml.XmlDocumentType


DOMImplementation


System.Xml.XmlDOMImplementation


Element


System.Xml.XmlElement


Entity


System.Xml.XmlEntity


EntityReference


System.Xml.XmlEntityReference


NameNodeMap


System.Xml.XmlNameNodeMap


Node


System.Xml.XmlNode


NodeList


System.Xml.XmlNodeList


Notation


System.Xml.XmlNotation


ProcessingInstruction


System.Xml.XmlProcessingInstruction


DOMException


System.ArgumentException

javax.swing包

.net没有提供与下列包直接等价的类:

javax.swing.plaf/javax.swing.border/javax.swing.table/javax.swing.text( 可用 System.Windows.Form.RichTextBox 代替 ) 和 javax.swing.filechooser ( 可用 System.Windows.Form.OpenFileDialog 和 System.Windows.Form.SaveFileDialog 代替 )

javax.swing


java


.net


AbstractButton


System.Windows.Forms. ButtonBase


AbstractListModel


System.Windows.Forms.ListControl


AbstractSpinnerModel


System.Windows.Forms.UpDownBase


ImageIcon


System.Windows.Forms.Image


Jbutton


System.Windows.Forms.Button


JCheckBox


System.Windows.Forms.CheckBox


JColorChooser


System.Windows.Forms.ColorDialog


JComboBox


System.Windows.Forms.ComboBox


JComponent


System.Windows.Forms.UserControl


JDialog


System.Windows.Forms.CommonDialog


JEditorpane


System.Windows.Forms.TextBoxBase


JFileChooser


System.Windows.Forms.OpenFileDialog


JFormattedTextField


System.Windows.Forms.RichTextBox


JFrame


System.Windows.Forms.Form


JLabel


System.Windows.Forms.Label


JList


System.Windows.Forms.ListBox


JMenuBar


System.Windows.Forms.MainMenu


JMenuItem


System.Windows.Forms.MenuItem


JPanel


System.Windows.Forms.Panel


JPasswordField


System.Windows.Forms.TextBox


JPopupMenu


System.Windows.Forms.ContextMenu


JProgressBar


System.Windows.Forms.ProgressBar  StatusBar


JRadioButton


System.Windows.Forms.RadioButton


JScrollBar


System.Windows.Forms.HScrollBar

System.Windows.Forms.VScrollBar


JScrollPane


System.Windows.Forms.Panel


JSlider


System.Windows.Forms.TrackBar


JSpinner


System.Windows.Forms.DomainUpDown


JSpitPane


System.Windows.Forms.Splitter


JTable


System.Windows.Forms.ListView


JTextArea


System.Windows.Forms.TextBox


JTextField


System.Windows.Forms.TextBox


JTextPane


System.Windows.Forms.RichTextBox


JTogleButton


System.Windows.Forms. ButtonBase


JToolBar


System.Windows.Forms.ToolBar


JToolTip


System.Windows.Forms.ToolTip


JTree


System.Windows.Forms.ListView


Popup


System.Windows.Forms.ContextMenu


Timer


System.Windows.Forms.Timer

javax.swing.event


java


.net


CaratEvent


System.EventArgs


ListDataEvent


System.EventArgs


ListSelectionEvent


System.EventArgs


MenuEvent


System.EventArgs


PopupMenuEvent


System.EventArgs

java.awt包

java.awt


java


.net


AWTEvernt


System.EventArgs


AWTKeyStroke


System.Windows.Forms.KeyPressEventArgs


AWTPermission


System.Security.Permissions.UIPermission


BasicStroke


System.Drawing.Pen


Button


System.Windows.Forms.Button


Canvas


System.Windows.Forms. Control


CheckBox


System.Windows.Forms.RadioButton


Choice


System.Windows.Forms.ComboBox


Color


System.Drawing.Color


Component


System.Windows.Forms. Control


Container


System.Windows.Forms. Control


Cursor


System.Windows.Forms.Cursor


Dialog


System.Windows.Forms.CommonDialog


Dimension


System.Drawing.Size


Event


System.EventArgs


FileDialog


System.Windows.Forms.FileDialog


Font


System.Drawing.Font


Frame


System.Windows.Forms.Form


GradientPaint


System.Drawing.Drawing2D.LinearGradientBrush


Graphics


System.Drawing.Graphics


Graphics2D


System.Drawing.Graphics


Image


System.Drawing.Image


JobAttribute


System.Drawing.Printing. PageSettings


Label


System.Windows.Forms.Label


List


System.Windows.Forms.ListBox


Menu


System.Windows.Forms.MainMenu


MenuItem


System.Windows.Forms.MenuItem


PageAttributes


System.Drawing.Printing. PageSettings


Panel


System.Windows.Forms. Panel


Point


System.Drawing.Point


PopupMenu


System.Windows.Forms.ContextMenu


PrintJob


System.Drawing.Printing.PrintDocument


Rectangle


System.Drawing.Rectangle


Scrollbar


System.Windows.Forms.HScrollbar

System.Windows.Forms.VScrollbar


ScrollPane


System.Windows.Forms. Panel


TextArea


System.Windows.Forms. TextBox


TextField


System.Windows.Forms. TextBox


TexturePaint


System.Drawing.TextreBrush

java.awt.event


java


.net


ActionEvent


System.EventArgs


AdjustmentEvent


System.Windows.Forms.ScrollEventArgs


ComponentEvent


System.EventArgs


ContainerEvent


System.Windows.Forms.ControlEventArgs


FocusEvent


System.EventArgs


ItemEvent


System.EventArgs


KeyEvent


System.Windows.Forms.KeyPressEventArgs


MouseEvent


System.Windows.Forms.MouseEventArgs


PaintEvent


System.Windows.Forms.PaintEventArgs


TextEvent


System.EventArgs


WindowEvent


System.EventArgs

java.awt.print


java


.net


PageFormat


System.Drawing.Printing.PageSettings


Paper


System.Drawing.Printing.PageSize


PrinterJob


System.Drawing.Printing.PrintDocument

时间: 2024-11-25 15:56:40

JAVA API与.NetAPI的相关文章

笔记:MyBatis 使用 Java API配置

我们已经讨论了各种MyBatis配置元素,如envronments.typeAlias和typeHandlers,以及如何使用XML配置它们.即使你想使用基于JavaAPI的MyBatis配置,MyBatis的SqlSessionFactory接口除了使用基于XML的配置创建外也可以通过Java API 编程式地被创建.每个在XML中配置的元素,都可以编程式的创建.使用Java API创建SqlSessionFactory,代码如下: ? ? ????public?static?SqlSessi

MyEclipse生成java API文档

API文档是提供接口是必须的,如果用word文档,不仅书写起来很麻烦,而且对于使用者来说很不方便.可以使用myEclipse来生成API文档,与java提供的官方API文档一样.一下是详细步骤. /**  * 数据库操作通用程序包  */ package xju.dbhelper; import java.sql.*; /**  * 数据库操作通用接口  * @author xju  * @version 1.0  */ public abstract interface DBHelper {

spark2.x由浅入深深到底系列六之RDD java api详解三

学习任何spark知识点之前请先正确理解spark,可以参考:正确理解spark 本文详细介绍了spark key-value类型的rdd java api 一.key-value类型的RDD的创建方式 1.sparkContext.parallelizePairs JavaPairRDD<String, Integer> javaPairRDD =         sc.parallelizePairs(Arrays.asList(new Tuple2("test", 3

Elasticsearch5.0 Java Api(一) -- 插入索引

Elasticsearch5.X官方手册 Elasticsearch5.X官方手册中文版 Elasticsearch5.X Java Api官方手册 导入maven依赖 <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>transport</artifactId> <version>5.0.0</version> </depend

Java API操作HDFS

HDFS是存储数据的分布式文件系统,对HDFS的操作,就是对文件系统的操作,除了用HDFS的shell命令对文件系统进行操作,我们也可以利用Java API对文件系统进行操作,比如文件的创建.删除.修改权限等等,还有文件夹的创建.删除.重命名等等. 使用Java API对文件系统进行操作主要涉及以下几个类: 1.Configuration类:该类的对象封装了客户端或者服务端的配置. 2.FileSystem类:该类的对象是一个文件系统对象,可以利用该对象的一些方法来对文件进行操作,FileSys

在Java API设计中,面向接口编程的思想,以及接口和工厂的关系

现在的java API的设计中,提倡面向接口的编程,即在API的设计中,参数的传递和返回建议使用接口,而不是具体的实现类,如一个方法的输入参数类型应该使用Map接口,而不是HashMap或Hashtable等具体的实现类.这样做的好处是,程序容易扩展.如果使用Map作为参数,用户可以使用任何实现Map接口的类作为参数,而不是仅仅限制使用HashMap或Hashtable作为参数,使程序的实现更加灵活. 接口(Java的Interface),只定义了一些抽象的方法(也可以定义一些常量,但不鼓励这么

HDFS中JAVA API的使用

转自:http://www.cnblogs.com/liuling/p/2013-6-17-01.html 相关源代码:http://www.cnblogs.com/ggjucheng/archive/2013/02/19/2917020.html HDFS是一个分布式文件系统,既然是文件系统,就可以对其文件进行操作,比如说新建文件.删除文件.读取文件内容等操作.下面记录一下使用JAVA API对HDFS中的文件进行操作的过程. 对分HDFS中的文件操作主要涉及一下几个类: Configurat

ElasticSearch Java api 详解_V1.0

原英文文档:http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/index.html (各个版本的api) Search部分: 查询有两种方法:query Java API和filter Java API 首先看一个例子: import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.action.search.Se

Android学习八---OpenCV JAVA API

OpenCV java API的文档说明在OpenCV-2.4.10-android-sdk/sdk/java/javadoc/index.html的文件夹下. 想用java API的方式进行OpenCV4android 应用开发还是挺简单,首先就这些API先熟悉一下,然后对自己要开发的应用设计好流程,需要用到什么的数据结构进行存储,用到什么算法.然后对算法进行了解,输入参数是什么,输出参数是什么.有哪些fields和methods. 1.Packages:org.opencv.core Cor