Java Socket

一篇介绍 Java Socket 编程的经典文章事实上网络编程简单的理解就是两台计算机相互通讯数据而已。对于程序员而言,去掌握一种编程接口并使用一种编程模型相对就会显得简单的多了。Java SDK提供一些相对简单的Api来完成这些工作,Socket就是其中之一。对于Java而言。这些Api存在与Java.net这个包里面。因此只要导入这个包就可以准备网络编程了。网络编程的基本模型就是客户机到服务器模型。简单的说就是两个进程之间相互通讯,然后其中一个必须提供一个固定的位置,而另一个则只需要知道这个固定的位置,并去建立两者之间的联系。然后完成数据的通讯就可以了。这里提供固定位置的通常称为服务...
HJY | 2008-10-05 17:33 | 阅读 3829 次 | 评论 0 条

Eliminate Inherit And Oriented Interface Programming(Mind)

消除继承和面向接口编程继承是面向对象中很重要的概念。假如考虑到Java语言特性,继承分为两种:接口继承和实现继承。这只是技术层面的问题,即便C 中不存在接口的概念,但它的虚基类实际上也相当于接口。对于OO的初学者来说,他们很希望自己的程序中出现大量的继承,因为这样看起来很OO。但滥用继承会带来很多问题,尽管有时候我们又不得不使用继承解决问题。相比于接口继承,实现继承的问题要更多,它会带来更多的耦合问题。但接口继承也是有问题的,这是继承本身的问题。实现继承的很多问题出于其自身实现上,因此这里重点讨论实现继承的问题。举个例子(这个例子实在太老套了)。我要实现一个Stack类,我想当然地选择 ...
HJY | 2008-10-05 17:21 | 阅读 1938 次 | 评论 0 条

I18N

1:国际化配置:<html:link action="localAction.do?country=CN&amp;language=zh&amp;page=/main.do"> <bean:message key="language.chinese"/></html:link><html:link action="localAction.do?country=US&amp;language=en&amp;page=/main.do"> <bean:message key="language.english"/></html:link>2:StrutsConfig<!-- 动态...
J2EE | 2008-10-05 16:43 | 阅读 2240 次 | 评论 0 条

Tiles Framework

概况 传 统的GUI工具包,如Java AWT和Java Swing,都提供了一些功能强大的布局管理器,它们指定各个视图组件在窗口中的分布位置。布局管理器有助于创建复合式的复杂界面,一个复合式界面由一些 简单的基本界面组成。利用布局管理器来创建GUI界面有以下优点: ·可重用性:基本界面可以被重用,组合成各种不同的复合式界面 ·可扩展性:可以方便的扩展基本界面,从而创建更复杂的界面 ·可维护性: 每个基本界面之间相互独立,当复合式界面中的局部区域发生变化,不会影响其它区域 不幸的是,JSP技术本身并没有直接提供布局或布局管理器。为了简化Web...
Framework | 2008-10-05 14:15 | 阅读 2260 次 | 评论 0 条

EL

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 7.8 磅 0 2 false false false M...
JSP | 2008-10-04 11:14 | 阅读 5227 次 | 评论 0 条

Java exe File Detail(01)

javac:Java编译器,将Java源代码换成字节代java:Java解释器,直接从类文件执行Java应用程序代码appletviewer(小程序浏览器):一种执行HTML文件上的Java小程序类的Java浏览器javadoc:根据Java源代码及其说明语句生成的HTML文档jdb:Java调试器,可以逐行地执行程序、设置断点和检查变量javah:产生可以调用Java过程的C过程,或建立能被Java程序调用的C过程的头文件Javap:Java反汇编器,显示编译类文件中的可访问功能和数据,同时显示字节代码含义jar:多用途的存档及压缩工具,是个java应用程序,可将多个文件合并为单个JA...
J2EE | 2008-10-04 10:32 | 阅读 4500 次 | 评论 0 条

My Mind Casting(0.1)

Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso...
MVC | 2008-10-03 16:54 | 阅读 2822 次 | 评论 0 条

In The Closet

In The Closet written and composed by michael jackson and teddy riley. produced by teddy riley and michael jackson. [princess stephanie of monaco) there's something i have to say to you if you promise you'll understand i cannot contain myself when in your presence i'm so humble t...

Why You Wanna Trip On Me

Why You Wanna Trip On Me Why You Wanna Trip On MeWritten and Composed by Teddy Riley and Bernard Bell.They say I'm differentThey don't understandBut there's a bigger problemThat's much more in demandYou got world hungerNot enough to eatSo there's really no timeTo be trippin' on meYou got sc...

Scream

Scream SCREAM Michael Jackson Tired of injustice Tired of the schemes Kinda disgusted So what does it mean Kicking me down I got to get up As jacked as it sounds The whole system sucks Peek in the shadow Come into the light You tell me I'm wrong Then you bette...

Give in to Me

Give in to Me I just can't stop loving you Michael Jackson Each Time the wind blows I hear your voice so I call your name... Whispers at morning Our love is dawning Heaven's glad you came You know how I feel This thing can't go wrong I'm so proud to say I love you ...

You Are Not Alone

You Are Not Alone Written and Composed by R. Kelly. Produced by R. Kelly and Michael Jackson. Another day has gone I'm still all alone How could this be You're not here with me You never said goodbye Someone tell me why Did you have to go And leave my world so cold ...

Whatever Happens

Whatever Happens He gives another smile, tries to understand her side To show that he cares She's consumed with everything that's been goin' on She says Whatever happens, don't let go of my hand Everything will be alright, he assures her But she doesn't hear a word that he s...

They Don't Care About Us

They Don't Care About Us Written and Composed by Michael Jackson MJJ Productions Inc. 制作:Jeany Skinhead, Deadhead, Everybody, Gone bad Situation, Aggravation, Everybody, Allegation In the suite, On the news Everybody Bang bang Shock dead, Everybody's Gone mad All I wanna s...

Who is it

Who is it Who Is It Michael Jackson I gave her money I gave her time I gave her everything Inside one heart could find I gave her passion My very soul I gave her promises And secrets so untold And she promised me forever And a day we'd live as one We made ...

Earth Song

earth song What about sunrise What about rain What about all the things That you said we were to gain.. . What about killing fields Is there a time What about all the things That you said was yours and mine... Did you ever stop to notice All the blood we've shed befor...

Dirty Diana

Dirty Diana Dirty Diana Michael Jackson, 1987 Lyrics by Billy ZHANG Oh No . . . You'll Never Make Me Stay, So Take Your Weight Off Of Me I Know Your Every Move, So Won’t You Just Let Me Be I’ve Been Here Times Before, But I Was Too Blind To See That You Seduce Every Man,...

summarize briefly

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 7.8 磅 0 2 false false false M...
java code | 2008-09-29 17:25 | 阅读 3012 次 | 评论 0 条

递归

Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso...
java code | 2008-09-29 17:20 | 阅读 2410 次 | 评论 0 条

Random Create

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 7.8 磅 0 2 false false false M...
java code | 2008-09-29 17:16 | 阅读 2805 次 | 评论 0 条
浏览581565次