ja

阅读 / 问答 / 标签

java中学习了swing可以做一个什么项目

计算器啊,仿照windows自带的计算器

电影使徒行者blackjack是谁

电影中专门交代古天乐是电脑高手,黑进系统访问了BJ的档案和康氏密码表,说明他是假扮的BJ。如果只是简单的他是BJ,渣渣辉是博仔,那黑客访问档案这一段就太多余了!

blackjack的意思是什么

blackjack的意思是:闪锌矿;铁闪锌矿;用皮革包的铅头短棍。blackjack的意思是:闪锌矿;铁闪锌矿;用皮革包的铅头短棍。blackjack的英英释义是名词blackjack:acommonscrubbydeciduoustreeofcentralandsoutheasternUnitedStateshavingdarkbarkandbroadthree-lobed(club-shaped)leaves;tendstoformdensethicketsapieceofmetalcoveredbyleatherwithaflexiblehandle;usedforhittingpeopleaflagusuallybearingawhiteskullandcrossbonesonablackbackground;indicatesapirateshipagamblinggameusingcards;theobjectistoholdcardshavingahighercountthanthosedealttothebankeruptobutnotexceeding。blackjack的例句是TheBandistitledBlackJackJohnson.乐队名为黑杰克约翰逊。YouloveLasVegas,slotmachines,andblackjack.喜欢拉斯维加斯,老了个?虎机和二十一点。BlackJackprogramscanprovidecoefficientsforpopularcountingsystems.黑杰克节目受欢迎票系统可提供系数。一、英英释义点此查看blackjack的详细内容名词blackjack:acommonscrubbydeciduoustreeofcentralandsoutheasternUnitedStateshavingdarkbarkandbroadthree-lobed(club-shaped)leaves;tendstoformdensethicketsapieceofmetalcoveredbyleatherwithaflexiblehandle;usedforhittingpeopleaflagusuallybearingawhiteskullandcrossbonesonablackbackground;indicatesapirateshipagamblinggameusingcards;theobjectistoholdcardshavingahighercountthanthosedealttothebankeruptobutnotexceeding21动词blackjack:exertpressureonsomeonethroughthreats二、例句TheBandistitledBlackJackJohnson.乐队名为黑杰克约翰逊。YouloveLasVegas,slotmachines,andblackjack.喜欢拉斯维加斯,老了个?虎机和二十一点。BlackJackprogramscanprovidecoefficientsforpopularcountingsystems.黑杰克节目受欢迎票系统可提供系数。blackjack的相关临近词BlackKey、black、blackvarnishedcambriccloth、Black-and-WhiteSeedeater、BlackandWhitewithChequers、black-spotsidentification、BlackPlasticRefuseSacksSt、blackandwhitenegativefilm、blackmarksonwhitetrousers、blackandodorousriverwater、blackbandironcarbonateore、blackandwhitepositivefilm点此查看更多关于blackjack的详细信息

java awt;java applet;java swing分别是什么?他们之间有什么联系和区别?

Java Applet : Java Applet就是用Java语言编写的一些小应用程序,它们可以直接嵌入到网页中,并能够产生特殊的效果。包含Applet的网页被称为Java-Powered页,可以称其为Java支持的网页。 当用户访问这样的网页时,Applet被下载到用户计算机上执行,但前提是用户使用的是支持 Java的网络浏览器。由于Applet是再用户计算机上执行的,因此它的执行速度是不受网络宽带或者MODEM存取速度的限制,用户可以更好的欣赏网页上Applet产生的多媒体效果。 在Java Apple中,可以实现图形绘制、字体和颜色控制、动画和声音的插入、人机交互及网络交流等功能.Apple还提供各种名为抽象窗口工具箱 (Abstract Window Toolkit,AWT)的窗口环境开发工具,但AWT的设计是存在缺陷的,取而代之的Swing技术为Java GUI足见的轻量组建.它们利用用户计算机的GUI元素,可以建立标准的图形用户界面,如窗口、按钮、滚动条等。目前,在网络上有非常多的Applet范例来生动地展现这些功能.AWT: AWT(Abstract Windowing Toolkit),中文译为抽象窗口工具包,是Java提供的用来建立和设置Java的图形用户界面的基本工具。AWT由Java中的java.awt包提供,里面包含了许多可用来建立与平台无关的图形用户界面(GUI)的类,这些类又被称为组件(components)。 抽象窗口工具包 (Abstract Windowing Toolkit) (AWT)是Java的平台独立的窗口系统, 图形和用户界面器件工具包。AWT是Java基础类 (JFC)的一部分,为Java程序提供图形用户界面(GUI)的标准API。 AWT提供了Java Applet和Java Application中可用的用户图形界面GUI中的基本组件(components)。由于Java是一种独立于平台的程序设计语言,但GUI却往往是依赖于特定平台的,Java采用了相应的技术使得AWT能提供给应用程序独立于机器平台的接口,这保证了同一程序的GUI在不同机器上运行具有类似的外观(不一定完全一致)。 Java1.0的AWT(旧AWT)和Java1.1以后的AWT(新AWT)有着很大的区别,新的AWT克服了旧AWT的很多缺点,在设计上有较大改进,使用也更方便,这里主要介绍新的AWT, 但在Java1.1及以后版本中旧的AWT的程序也可运行。 抽象窗口工具包AWT (Abstract Window Toolkit) 是 API为Java 程序提供的建立图形用户界面GUI (Graphics User Interface)工具集,AWT可用于Java的applet和applications中。它支持图形用户界面编程的功能包括:用户界面组件;事件处理模型;图形和图像工具,包括形状、颜色和字体类;布局管理器,可以进行灵活的窗口布局而与特定窗口的尺寸和屏幕分辨率无关;数据传送类,可以通过本地平台的剪贴板来进行剪切和粘贴。 Java释出的时候,AWT作为Java最弱的组件受到不小的批评。最根本的缺点是AWT在原生的用户界面之上仅提供了一个非常薄的抽象层。例如,生成一个AWT的复选框会导致AWT直接调用下层原生例程来生成一个复选框。不幸的是,一个 Windows平台上的复选框同MacOS平台或者各种UNIX风格平台上的复选框并不是那么相同。 这种糟糕的设计选择使得那些拥护Java“一次编写,到处运行 (write once, run anywhere)”信条的程序员们过得并不舒畅,因为AWT并不能保证他们的应用在各种平台上表现得有多相似。一个AWT应用可能在Windows上表现很好可是到了Macintosh上几乎不能使用,或者正好相反。在90年代,程序员中流传着一个笑话:Java的真正信条是“一次编写,到处测试(write once, test everywhere)”。导致这种糟糕局面的一个可能原因据说是AWT从概念产生到完成实现只用了一个月。 在第二版的Java开发包中,AWT的器件很大程度上被Swing工具包替代。Swing通过自己绘制器件而避免了AWT的种种弊端:Swing调用本地图形子系统中的底层例程,而不是依赖操作系统的高层用户界面模块。Swing: Swing是一个用于开发Java应用程序用户界面的开发工具包。它以抽象窗口工具包(AWT)为基础使跨平台应用程序可以使用任何可插拔的外观风格。Swing开发人员只用很少的代码就可以利用Swing丰富、灵活的功能和模块化组件来创建优雅的用户界面。 工具包中所有的包都是以swing作为名称,例如javax.swing,javax.swing.event 用Swing创建图形界面步骤: (1)导入Swing包 (2)选择界面风格 (3)设置顶层容器 (4)设置按钮和标签 (5)将组件放到容器上 (6)为组件增加边框 (7)处理事件 (8)辅助技术支持

java Swing和java Web是什么意思?

swing是java的中用来制作图形界面 web 是网页的

java的awt和swing有什么不同呢?

awt和swing的区别:1.awt是基于本地方法的C/C++程序,其运行速度比较快;而swing是基于awt的Java程序,其运行速度比较慢。2.AWT的控件在不同的平台可能表现不同,而Swing在所有平台表现一致。3.AWT和Swing的实现原理不同。AWT的图形函数与操作系统提供的图形函数有着一一对应的关系。而Swing 不仅提供了AWT 的所有功能,还用纯粹的Java代码对AWT的功能进行了大幅度的扩充。4.awt是抽象窗口组件工具包,是 java 最早的用于编写图形节目应用程序的开发包;但swing是为了解决awt存在的问题而新开发的包,它以awt为基础的。扩展资料:在实际应用中,应该使用AWT还是Swing取决于应用程序所部署的平台类型。对于一个嵌入式应用,目标平台的硬件资源往往非常有限,而应用程序的运行速度又是项目中至关重要的因素。在这种矛盾的情况下,简单而高效的AWT当然成了嵌入式Java的第一选择。在普通的基于PC或者是工作站的标准Java应用中,硬件资源对应用程序所造成的限制往往不是项目中的关键因素。所以在标准版的Java中则提倡使用Swing, 即通过牺牲速度来实现应用程序的功能。

java的awt和swing有什么不同呢?

路过,补充一点swing是线程非安全的。

java中的swing什么意思

快速构建窗体的基础类,现在很少用了

java awt和swing有什么区别?

AWT(Abstract Windowing Toolkit),中文译为抽象窗口工具包,是Java提供的用来建立和设置Java的图形用户界面的基本工具。AWT由Java中的java.awt包提供,里面包含了许多可用来建立与平台无关的图形用户界面(GUI)的类,这些类又被称为组件(components)。Swing是一个用于开发Java应用程序用户界面的开发工具包。它以抽象窗口工具包(AWT)为基础使跨平台应用程序可以使用任何可插拔的外观风格。Swing开发人员只用很少的代码就可以利用Swing丰富、灵活的功能和模块化组件来创建优雅的用户界面。 从版本上看,awt出现在JDK1.0及以后版本。swing出现在JDK2.0及以后版本。从功能上看,虽然都是设计GUI的类库,但是swing的功能更加强大。例如,设计一个按钮,这个按钮上显示一幅图片,在awt中就很费事,但是在swing中就很方便。

java中SWT和swing是什么关系?在界面中分别扮演着什么样的角色?

重要角色

java的Swing是轻量级组件,轻量级组件是什么意思?

个人我觉得可以先把短的放在前面然后长的

java里的swing是什么意思,为什么取名swing

Java中的Swing是一套用于开发 图形界面的类库。说白了,就就是让Java程序有个前台界面。例如:窗口啊,按钮啊,对话框啊等等

java的awt和swing有什么不同

AWT 是Abstract Window ToolKit (抽象窗口工具包)的缩写,这个工具包提供了一套与本地图形界面进行交互的接口。AWT 中的图形函数与操作系统所提供的图形函数之间有着一一对应的关系,把它称为peers。 也就是说,当利用 AWT 来构件图形用户界面的时候,实际上是在利用操作系统所提供的图形库。由于不同操作系统的图形库所提供的功能是不一样的,在一个平台上存在的功能在另外一个平台上则可能不存在。为了实现Java语言所宣称的"一次编译,到处运行"的概念,AWT 不得不通过牺牲功能来实现其平台无关性,也就是说,AWT 所提供的图形功能是各种通用型操作系统所提供的图形功能的交集。由于AWT 是依靠本地方法来实现其功能的,通常把AWT控件称为重量级控件。Swing 是在AWT的基础上构建的一套新的图形界面系统,它提供了AWT 所能够提供的所有功能,并且用纯粹的Java代码对AWT 的功能进行了大幅度的扩充。例如说并不是所有的操作系统都提供了对树形控件的支持, Swing 利用了AWT 中所提供的基本作图方法对树形控件进行模拟。由于 Swing 控件是用100%的Java代码来实现的,因此在一个平台上设计的树形控件可以在其他平台上使用。由于在Swing 中没有使用本地方法来实现图形功能,通常把Swing控件称为轻量级控件。AWT和Swing之间的基本区别:AWT 是基于本地方法的C/C++程序,其运行速度比较快;Swing是基于AWT 的Java程序,其运行速度比较慢。对于一个嵌入式应用来说,目标平台的硬件资源往往非常有限,而应用程序的运行速度又是项目中至关重要的因素。在这种矛盾的情况下,简单而高效的AWT 当然成了嵌入式Java的第一选择。而在普通的基于PC或者是工作站的标准Java应用中,硬件资源对应用程序所造成的限制往往不是项目中的关键因素,所以在标准版的Java中则提倡使用Swing, 也就是通过牺牲速度来实现应用程序的功能。通俗的话:AWT 是抽象窗口组件工具包,是 java 最早的用于编写图形节目应用程序的开发包。Swing 是为了解决 AWT 存在的问题而新开发的包,它以 AWT 为基础的。

flex+java中的mxml文件与web端得Service交互,需要配置Services_config.xml和web.xml中的哪些东西??

如果是webservice的话不需要配置任何东西,直接调用webservice接口就可以了不需要lcds或blazds

java 的实时展示 想用 flex flex有哪些 开源的插件吗

整合Flex和 Java BlazeDS(免费) LCDS(收费) fusion chart 可能会好点,但是两个都没有用过,我百度看别人的评价的

The Jacksons的《Torture》 歌词

歌曲名:Torture歌手:The Jacksons专辑:Can You Feel It: The Jacksons CollectionYou know, you know.You know that it"s torture.The sweetest words you whisper in my ear,Cause you know what I wanna hear.The way you hold me like it"s something real,Cause you know what I wanna feel.It takes two to lie,One to lie and one to listen,And deep promises are wearing thin.Oh, ohStop.What you"re doing to me?Stop.Like an arrow through me.Stop.This is torture to me.Cause it gotta be,All or it"s nothing at all.I"m telling you to stop.This is torture to me.You know that it"s torture.I lose control when you"re touching me,Cause you know what I really need.But I need more than physicality,So you know how it"s gotta be.It takes two to lie,One to lie but I"m done listening.If your hearts have finished,Then we"re finished.Oh, ohStop.What you"re doing to me?Stop.Like an arrow through me.Stop.This is torture to me.Cause it gotta be,All or it"s nothing at all.I"m telling you to stop.This is torture to me.You know that it"s torture.I cant keep going through this.Cant keep on leading me on.Why you being so elusive?You"re in or you"re out,There"s no middle crowd.No, no, no, noIt"s killing me. (x2)You know that it"s torture.It"s killing me (x2)You know that it"s torture.I lose control when you"re touching me.Cause you know what I really need.But I need more than physicality.(x2)Oh, ohStop.What you"re doing to me?Stop.Like an arrow through me.Stop.This is torture to me.Cause it gotta be,All or it"s nothing at all.I"m telling you to stop.It"s killing me. (x2)You know that it"s torture.It"s killing me (x2)You know that it"s torture.It"s killing me (x2)You know that its tortureIt"s killing me (x2)You know that it"s torture.http://music.baidu.com/song/8835761

The Jacksons的《Torture》 歌词

歌曲名:Torture歌手:The Jacksons专辑:Original Album ClassicsYou know, you know.You know that it"s torture.The sweetest words you whisper in my ear,Cause you know what I wanna hear.The way you hold me like it"s something real,Cause you know what I wanna feel.It takes two to lie,One to lie and one to listen,And deep promises are wearing thin.Oh, ohStop.What you"re doing to me?Stop.Like an arrow through me.Stop.This is torture to me.Cause it gotta be,All or it"s nothing at all.I"m telling you to stop.This is torture to me.You know that it"s torture.I lose control when you"re touching me,Cause you know what I really need.But I need more than physicality,So you know how it"s gotta be.It takes two to lie,One to lie but I"m done listening.If your hearts have finished,Then we"re finished.Oh, ohStop.What you"re doing to me?Stop.Like an arrow through me.Stop.This is torture to me.Cause it gotta be,All or it"s nothing at all.I"m telling you to stop.This is torture to me.You know that it"s torture.I cant keep going through this.Cant keep on leading me on.Why you being so elusive?You"re in or you"re out,There"s no middle crowd.No, no, no, noIt"s killing me. (x2)You know that it"s torture.It"s killing me (x2)You know that it"s torture.I lose control when you"re touching me.Cause you know what I really need.But I need more than physicality.(x2)Oh, ohStop.What you"re doing to me?Stop.Like an arrow through me.Stop.This is torture to me.Cause it gotta be,All or it"s nothing at all.I"m telling you to stop.It"s killing me. (x2)You know that it"s torture.It"s killing me (x2)You know that it"s torture.It"s killing me (x2)You know that its tortureIt"s killing me (x2)You know that it"s torture.http://music.baidu.com/song/9641851

django 中template 怎么使用model自定义的方法

django model中使用多语言支持的快速方法, 该方法通过建立自定义的template tag 选取model中重复的语言field来达到多语言显示的目的.假设我们有这样一个models.py, 某一个model中包含多个重复的field, 每个重复的field都是用来保存其对应的显示语言: class MyObject(models.Model): name = models.CharField(max_length=50) title_en = models.CharField(max_length=50) title_es = models.CharField(max_length=100) title_fr = models.CharField(max_length=100) description_en = models.CharField(max_length=100) description_es = models.CharField(max_length=100) description_fr = models.CharField(max_length=100) class MyOtherObject(models.Model): name = models.CharField(max_length=50) content_en = models.CharField(max_length=200) content_es = models.CharField(max_length=200) content_fr = models.CharField(max_length=200)注意, 我们将下划线和语言代码作为后缀放在对应的field后面, 这将作为一个语言的查找标记.然后我们在settings.py中添加需要翻译的field名: TRANSLATION_FIELDS = ("title", "description", "content")在项目目录中添加templatetags目录(不要忘了怎家__init__.py), 并在其中建立lazy_tags.py: from django import template from settings import TRANSLATION_FIELDS register = template.Library() class LocalizedContent(template.Node): def __init__(self, model, language_code): self.model = model self.lang = language_code def render(self, context): model = template.resolve_variable(self.model, context) lang = template.resolve_variable(self.lang, context) for f in TRANSLATION_FIELDS: try: setattr(model, f, getattr(model, "%s_%s" % (f, lang))) except AttributeError: pass return "" @register.tag(name="get_localized_content") def get_localized_content(parser, token): bits = list(token.split_contents()) if len(bits) != 3: raise template.TemplateSyntaxError(""get_localized_content" tag takes exactly 2 arguments") return LocalizedContent(model=bits[1], language_code=bits[2])为了在template中使用自定义的tag, 我们首先载入: {% load lazy_tags %}然后使用自定义tag, 传入object和语言代码, 取的翻译. 比如西班牙语: {% get_localized_content object "es" %}此时, 如果没有语言代码传入, 那么无法使用obj.description调用某一个语言field. 所以我们配合django.core.context_processors.request, context processor一起使用: TEMPLATE_CONTEXT_PROCESSORS = ( ... "django.core.context_processors.request", )我们就能在template中这样使用: {% get_localized_content object request.LANGUAGE_CODE %}

java通过WTC调用tuxedo服务,报错:TPESYSTEM(12):0:0:TPED_MINVAL(0):QMNONE(0):0 有人知道什么原因吗?谢谢

1、TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:No local or remote domain available xxx服务 服务没有调到。请检查tuxedo domain 与 weblogic domain连通请检查xxx服务在tuxedo中时候存在查看方式为:tmadminpsc -s +服务名如果是刚注册的xxx服务,请重现发布所在的WTC服务。如果没有重新发布,也会报这个错误。如果tuxedo 日志显示duplicate server,表示有另外一个weblogic domain 配置相同的wtc配置。也就是说 一个Tuxedo domain 对应两个相同的Weblogic domain,这种情况,也会出现这个错误, 请修改另外weblogic domain的wtc配置。(配置相同是指 远程tuxedo访问点与本地tuxedo相同)。 如果跨防火墙,请修改连接策略 都改为ON_STARTUP2、TPESYSTEM(12):0:0:TPED_MINVAL(0):QMNONE(0):0 tuxedo服务有问题或输入参数不正确。3、TPESYSTEM(13):0:0:TPED_MINVAL(0):QMNONE(0):0 tuxedo服务返回超过了设置的时间。优化tuxedo服务或修改时间门限。4、TPESYSTEM(10):0:0:TPED_MINVAL(0):QMNONE(0):0 tuxedo系统问题。报10看下服务,应该有core文件生成。

Strange Deja Vu [Scene Two] 歌词

歌曲名:Strange Deja Vu [Scene Two]歌手:Dream Theater专辑:Metropolis Part 2: Scenes From A MemoryStrange Deja VuDream TheaterMetropolis Pt 2: Scenes From a MemoryMusic by Dream TheaterNicholas:Subconscious strange sensationUnconscious relaxationWhat a pleasant nightmareAnd I can"t wait to get there againEvery time I close my eyesTheres another vivid surpriseAnother whole lifes waitingChapters unfinished, fadingCloser now- slowly coming into viewI"ve arrived- vlinding sunshine beaming throughThere"s a house I"m drawn toFamiliar settings nothing newThere"s a pathway leading thereWith a haunting chill in the airTheres a room at the top of the stairsEvery night I"m drawn up thereThere"s a girl in the mirrorHer face is getting clearerYoung child won"t you tell me why I"m here?In her eyes- I sense a story never toldBehind the disguise- theres something tearingAt her soulVictoria:Tonight I"ve been searching for itA feeling that"s deep inside meTonight Ive been searching forThe one that nobody knowsTrying to break freeI just can"t help myselfI"m feeling like I"m going out of my headTears my heart into twoI"m not the one the sleeper thought he knewNicholas:Back on my feet againEyes open to the real worldMetropolis surrounds meThe mirrors shattered the girlWhy is this other lifeHaunting me every dayI"d break through to the other sideIf only I"d find the waySomethings awfully familiarThe feelings so hard to shakeCould I have lived in that other worldIt"s a link that I"m destined to makeI"m still searching but I dont know what forThe missing key to unlock my minds doorToday I am searching for itA feeling that won"t go awayToday I am searching for itThe only one I knowTrying to break freeI just can"t help myselfI"m feeling like Im going out of my headTears my heart into twoI"m not the one I thought I always knewI just can" t help myselfI"m feeling like Im going out of my headUncanny, strange deja vuBut I dont mind- I hope to find the truthhttp://music.baidu.com/song/7657093

java 怎么调用tuxedo接口

Tuxedo的service有两种调用接口:ATMI和CORBA(Common Object Request Broker Architecture, 公共对象请求代理体系结构)。但是目前一般都是采用ATMI接口来做。一个简单的调用流程如下:首先用VC编写DLL(Dynamic Link Library,动态链接库)。Tuxedo提供的ATMI接口DLL用C语言编写的,与VC可无缝集成;再用VB编写COM(Component Object Model,组件对象模型)组件;在Java中通过Jacob组件来调用COM组件来实现调用Tuxedo服务;Jacob是一种基于JNI(Java Native Interface,Java本地接口)技术的开源的在Java中调用COM组件的Java组件。其中JAVA部分的调用如下:import com.jacob.activeX.ActiveXComponent; import com.jacob.com.Dispatch; public class callTuxedo {   public String callTuxedoService(String sendDoc){   //找到组件   ActiveXComponent mf = new ActiveXComponent("tuxedo.useClass");   ObjectmyCom = mf.getObject();//生成一个对象 Objectresult=Dispatch.call(myCom," vbCallTuxedoServiceToUpper ",sendDoc);   return result.toString();   }   public static void main(String[] args) {   String sendDoc=new String("a test string.");//要转换的字符串   String returnDoc=new String("");   returnDoc=callTuxedoService(sendDoc);//调用服务,并得到返回的字符串   …   }}

关于java的容器类 list,map等的toString()方法

创建一个List list = new xxxList( );调用list.toString();实际上是调用的xxxList的toString方法,因为list在编译的时候是List在运行的时候就是xxxList,而xxxList继承了AbstractCollection,AbstractCollection重写了toString方法

The North Face-Metropolis Jacket-TNF是鹅绒还是鸭绒

鹅绒。一、根据价格判断:鹅绒的价格要比鸭绒的价格高一些,因为鹅绒的绒朵比较大,蓬松性比较好,当然蓬松度好的话,出绒率也是比较高的,如果两个等级一样的话,鹅绒的保暖性能要好一些。二、根据衣服舒适度判断:鹅绒的舒适度也是比较好的,因为蓬松度好坏主要是由绒球的大小决定的,因为鹅绒的绒丝比较长,所以蓬松度比较好,这样舒适度也比较好。三、根据气味判断:鸭绒和鹅绒还有一个重要的区别就是鹅绒异味比较小,因为鹅是草食动物,鸭子杂食动物,所以鹅绒异味很小,鸭绒则普遍存在气味。如果用没达到成熟期的鸭子生产羽绒被,它的气味会更重,在天气潮湿的时候鸭绒被气味也会变的更重。四、根据衣服保暖性能判断:鹅绒与鸭绒相比较而言,绒朵大,中空度高、蓬松性好、回弹性优异,保暖性更强。鹅绒的绒朵普遍比鸭绒绒朵大,蓬松度比鸭绒的高出50%,所以保暖性能更加出色。鹅绒和鸭绒两者都有等级之分,即使等级最低的鹅绒也比等级最高的鸭绒保暖性要好。五、根据绒朵的大小判断:以生长周期而言,成熟的鹅一般要生长100天以上,成熟的鸭一般生长40天以上,所以,鹅的绒朵比鸭的绒朵更饱满。

Java鼠标双击事件

既然你感觉更新了,就在更改之前,把数据记录下来不就行了。然后按照你记录的数据还原窗口。

JAVA中的console是什么

Java控制台

chinese japanese中文翻译

This amendment is in chinese japanese and engpsh languages 协议的修正稿分别使用中文、日文和英文书写。 Language : chinese japanese engpsh 语言:中文英文日文 Engpsh chinese japanese 中日英文 In 1938 , in the middle of the chinese japanese war , the chinese govrnment retreated to wuhan . wai was born into a powerful family that wielded extreme i . . 华的父亲强哥及良哥三人同为结拜兄弟,三人皆为cia特工。强哥因配合? In 1938 , in the middle of the chinese japanese war , the chinese govrnment retreated to wuhan . wai was born into a powerful family that wielded extreme influence in the government . he joined the airforce with the purpose of paving his way for a future career in popcties . on a routine message depvering mission 伟刘德华生身于一个权倾朝野的显赫世家,抗日战争期间,为将来政途铺路而当上空军,在一次送信任务中,意外地被日机轰中,迫得急降山区小村,为村姑小禾吴倩莲所救,二人一见如故,悄悄地燃起爱火,可惜。 A sopd five - story structure , the main body of the building is built mostly of steel and concrete and partly of bricks and stones and shapes into a chinese japanese character " sun " japan " in chinese japanese means " root of sun " , with one courtyard each on the o sides . this sopd building is well organized in structure , symmetric in shape , and distinctive in design . during the final stage of world war ii , bombardments seriously damaged the building 整个总统府结构是一个日字型,属五层楼建筑物,楼身大多为钢筋混凝土结构,部分混用砖石,总楼高约60公尺,楼面与楼面距离达9公尺,两边各有一个天井,办公室围绕天井四周而建,整体结构十分坚实,外围以红砖与灰泥搭配精致简洁的雕饰,充分塑造出典雅庄严的气势。

jaron的Pray for you 的歌词中文翻译

英文歌词:I haven"t been to church since I don"t remember whenThings were going great til they fell apart again So I listened to the preacher as he told me what to doHe said you can"t go hatin" others who have done wrong to youSometimes we get angry but we must not condemnLet the good Lord do his job, you just pray for them I pray your brakes go out runnin" down a hillI pray a flower pot falls from a window sillAnd knocks you in the head like I"d like toI pray your birthday comes and nobody callsI pray you"re flyin" high when your engine stallsI pray all your dreams never come trueJust know wherever you are, honey, I pray for youI"m really glad I found my way to churchCause I"m already feelin" better and I thank God for the wordsYeah, I"m gonna take the high road and do what the preacher told me to doYou keep messin" up, and I"ll keep prayin" for youI pray your tire goes out at 110I pray you pass out drunk with your best friendAnd wake up with his and her tattoosI pray your brakes go out runnin" down a hillI pray a flower pot falls from a window sillAnd knocks you in the head like I"d like toI pray your birthday comes and nobody callsI pray you"re flyin" high when your engine stallsI pray all your dreams never come trueJust know wherever you are, near or farIn your house or in your carWherever you are, honey, I pray for youI pray for you中文歌词:我已经许久没去教堂了在你劈腿前我过的都还不错所以我决定听牧师的箴言问他我该怎麼办他说:你不该对伤害你的人心怀恨意有时我们会怨天尤人但我们不该如此就让上帝解决,而你只需为她们祷告我祈祷你的轮胎爆胎并且滚下山丘我祈祷花瓶从窗台掉落就像我期望的那样击中你的头我祈祷没人在你生日那天打电话祝贺我祈祷你坐的飞机飞到高空时引擎熄火我祈祷你的梦想都会幻灭甜心,就是知道不论你在哪,我会为你祈祷我很高兴我找到上教堂的理由了因为我现在心情变好并且谢谢上帝的箴言我知道我将往前迈进并且做著当初牧师告诫我的话你继续搞砸自己的生活,我会继续为你祈祷我祈祷你的轮胎刚好在时速110时爆胎我祈祷你和你的死党喝昏了起来时发现背上有他和她的刺青我祈祷你的轮胎爆胎并且滚下山丘我祈祷花瓶从窗台掉落就像我期望的那样击中你的头我祈祷没人在你生日那天打电话祝贺我祈祷你坐的飞机飞到高空时引擎熄火我祈祷你的梦想都会幻灭甜心,就是知道不论你在哪,远或近在你家或是在你的车上甜心,无论你在哪,我会为你祈祷我会为你祈祷是这个吗?

fs2you://Y2FjaGVmaWxlMzIucmF5ZmlsZS5jb20vemgtY24vZG93bmxvYWQvNzkxZjQwOTIzYjRjNDJhODQzZjY0ZTFiOGY4M

请给文件网址,谢谢

fs2you://Y2FjaGVmaWxlMTEucmF5ZmlsZS5jb20vemgtY24vZG93bmxvYWQvMmU2OWFjOGU5NzA

xl

jaron的Pray for you的歌词中文是什么?

英文歌词:I haven"t been to church since I don"t remember whenThings were going great til they fell apart again So I listened to the preacher as he told me what to doHe said you can"t go hatin" others who have done wrong to youSometimes we get angry but we must not condemnLet the good Lord do his job, you just pray for them I pray your brakes go out runnin" down a hillI pray a flower pot falls from a window sillAnd knocks you in the head like I"d like toI pray your birthday comes and nobody callsI pray you"re flyin" high when your engine stallsI pray all your dreams never come trueJust know wherever you are, honey, I pray for youI"m really glad I found my way to churchCause I"m already feelin" better and I thank God for the wordsYeah, I"m gonna take the high road and do what the preacher told me to doYou keep messin" up, and I"ll keep prayin" for youI pray your tire goes out at 110I pray you pass out drunk with your best friendAnd wake up with his and her tattoosI pray your brakes go out runnin" down a hillI pray a flower pot falls from a window sillAnd knocks you in the head like I"d like toI pray your birthday comes and nobody callsI pray you"re flyin" high when your engine stallsI pray all your dreams never come trueJust know wherever you are, near or farIn your house or in your carWherever you are, honey, I pray for youI pray for you中文歌词:我已经许久没去教堂了在你劈腿前我过的都还不错所以我决定听牧师的箴言问他我该怎麼办他说:你不该对伤害你的人心怀恨意有时我们会怨天尤人但我们不该如此就让上帝解决,而你只需为她们祷告我祈祷你的轮胎爆胎并且滚下山丘我祈祷花瓶从窗台掉落就像我期望的那样击中你的头我祈祷没人在你生日那天打电话祝贺我祈祷你坐的飞机飞到高空时引擎熄火我祈祷你的梦想都会幻灭甜心,就是知道不论你在哪,我会为你祈祷我很高兴我找到上教堂的理由了因为我现在心情变好并且谢谢上帝的箴言我知道我将往前迈进并且做著当初牧师告诫我的话你继续搞砸自己的生活,我会继续为你祈祷我祈祷你的轮胎刚好在时速110时爆胎我祈祷你和你的死党喝昏了起来时发现背上有他和她的刺青我祈祷你的轮胎爆胎并且滚下山丘我祈祷花瓶从窗台掉落就像我期望的那样击中你的头我祈祷没人在你生日那天打电话祝贺我祈祷你坐的飞机飞到高空时引擎熄火我祈祷你的梦想都会幻灭甜心,就是知道不论你在哪,远或近在你家或是在你的车上甜心,无论你在哪,我会为你祈祷我会为你祈祷是这个吗?

fs2you://Y2FjaGVmaWxlMzMucmF5ZmlsZS5jb20vemgtY24vZG93bmxvYWQvNjMzOGRhNzIyMmQ这个链接用什么下载啊

RaySource

这种网址应该怎么下载? fs2you://y2fjagvmawxlmjuucmf5zmlszs5jb20vemgty24vzg93bmxvywqvymu3mwrjoddlytv

rayfile下载,网上有客户端,可以搜到,安装打开后点新建,把链接复制到文件下载链接即可下载。。。。

fs2you://Y2FjaGVmaWxlMzIucmFlsZS5jb20vemgtY24vZG93bmxvYWQvOGJkZDM3MTc3YWEJUI2LVRhbGVzJTIwMy这个怎么

是问怎么下载吧?这个是RayFile网盘下载地址,需要先安装RaySource客户端才能下载。你用百度搜索RaySource或者RayFile,就能找到这个网盘的站点,然后下载RaySource,安装之后,在RaySource上面新建任务,把上面fs2you开头的地址,粘贴到URL这里,就可以下载了。

fs2you://Y2FjaGVmaWxlMzEucmF5ZmlsZS5jb20vemgtY24vZG93bmxvYWQvNGRjOTQxN 这个怎么打开

可以的uu₇₇b,*拿去吧

Jack Johnson的《I Got You》 歌词

歌曲名:I Got You歌手:Jack Johnson专辑:I Got YouI Got You -Jack JohnsonBack when all my little goals seemed so importantEvery pot of gold fill and full of distortionHeaven was a place still in space not in motionBut soonI got youI got everythingI"ve got youI don"t need nothingMore than youI got everythingI"ve got youWe went walking through the hillsTryin" to pretend that we both knowMaybe if we save upWe can build a little homeBut then the hell storm came and yelled,“You need to let go, you"ve got no control. No.”I got youI got everythingI"ve got youI don"t need nothingMore than youI got everythingI"ve got youThis weight"s too much aloneSome days I can"t hold it at allYou take it on for meWhen tomorrow"s too muchI"ll carry it allI"ve got youAnd when tomorrow"s too muchI"ll carry it allI got youI got youI got everythingI"ve got youI don"t need nothingMore than youI got everythingI"ve got youby 黄病病http://music.baidu.com/song/57796644

张杰英文名Jason来历?

Jason杰森因为有杰这个发音哦!好像以前还叫过一个英文名Daniel(丹尼尔)不过现在不用啦!张杰加油!~

【jamelia的super star】歌词的中文意思(跪求)

er

Lionel Hampton & His Just Jazz All Stars的《Stardust》 歌词

歌曲名:Stardust歌手:Lionel Hampton & His Just Jazz All Stars专辑:StardustStardust- Matt MonroAnd I am once again with youWhen our love was newAnd each kiss an inspirationBut that was long agoNow my consolationIs in the stardust of a songBeside a garden wallWhen stars are brightYou are in my armsThe nightingale tells his fairy taleA paradise where roses bloomThough I dream in vainIn my heart it will remainMy stardust melodyThe memory of love"s refrainhttp://music.baidu.com/song/7996151

帮我看下这个句子:The hijackers refuse to yield to demands (to release the passengers)

不是这样写有啥好处...是必须这样写...因为句子到demands这里已经结束了. 后面括号里的就是个名词性质的补充解释说明.如果要用of的话,就把括号去掉就行了,release本身就可以是名词了.

Rick James的《Moonchild》 歌词

歌曲名:Moonchild歌手:Rick James专辑:Motown Legends: Give It To Me, Baby - Cold BloodedMoonchildIron MaidenThe Seventh Son Of The Seventh SonSeven deadly sins七宗可遭天罚的大罪〔指骄、贪、欲、怒、馋、妒、懒〕Seven ways to win七种方法赢得胜利Seven holy paths to hell七条神圣之路通向地狱And your trip begins你的旅程就此开始Seven downward slopes七条向下的坡道Seven bloodied hopes七个血腥的心愿Seven are your burning fires七是你燃烧的火焰Seven your desires....七是你的渴望……Moonchild 月亮孩子Artist(Band):Iron Maiden编译:jionI am he the bornless one我是生于虚无的那一个The fallen angel watching you注视着你的堕落天使Babylon, the scarlet whore巴比伦(这里应代指伦敦,现代巴比伦,奢华淫靡的大都市),这淫荡的婊子I"ll infiltrate your gratitude你的礼物我要定了Don"t you dare to save your son休想妄图救你的孩子Kill him now and save the young ones一死方可救众生Be the mother of a birth strangled babe做死婴之母亲Be the devils own, Lucifer"s my name做魔鬼之奴仆,路西法,那是我的名Moonchild - hear the mandrake scream月亮孩子-听曼德拉草的尖叫Moonchild - open the seventh seal月亮孩子-打开第七封印I count the heads of those unborn我点数尚在娘胎的婴儿The accursed ones I"ll find them all所有已被诅咒的,我将找到他们And if you die by your own hand如果你用自己的手了结自己As a suicide you shall be damned你将因自杀而被诅咒And if you try to save your soul如果你企图拯救自己的灵魂I will torment you - you shall not grow old我将折磨你-你不会长大With every second and passing breath每一秒钟和每一次呼吸You"ll be so alone your soul will bleed to death孤独将伴随你直至你的灵魂悲痛至死Moonchild - hear the mandrake scream月亮孩子-听曼德拉草的尖叫Moonchild - open the seventh seal月亮孩子-打开第七封印Moonchild - You"ll be mine soon child月亮孩子-很快你将做我的孩子Moonchild - take my hand tonight月亮孩子-今晚牵我的手The twins they are exhausted, seven is this night双生子的精力已经枯竭,这是七之夜Gemini is rising as the red lips kiss to bite双子星伴随红唇的亲吻与啃咬升起Seven angels seven demons battle for his soul七天使七恶魔为他的灵魂而战When Gabriel lies sleeping, this child was born to die当加百利(替上帝把好消息告诉世人的天使)倒下睡去(这里意指天使战败),这孩子注定要死(Kick ass guitar)(操蛋的吉他秀!)One more dies and one more lives多一人死去又多一人得生One baby cries one mother grieves一个婴儿哭泣一位母亲悲伤For all the sins you will commit为了你将要犯的所有罪孽You"ll beg forgiveness and none I"ll give你会祈求宽恕而我不会施与A web of fear shall be your coat用痛苦的网做你的大衣To clothe you in the night深夜里将你包裹A lucky escape for you young man送你一个幸运的逃脱For I"ll see you damned in endless night因我将看你被诅咒在无尽的黑夜Moonchild - hear the mandrake scream月亮孩子-听曼德拉草的尖叫Moonchild - open the seventh seal月亮孩子-打开第七封印Moonchild - You"ll be mine soon child月亮孩子-很快你将做我的孩子Moonchild - take my hand tonight月亮孩子-今晚牵我的手【END】http://music.baidu.com/song/1663971

有没有哪个Java 8妙用Nashorn引擎的好例子

我们在安全模块中使用Nashorn实现规则引擎,安全规则可以很灵活地通过JS脚本配置,而不需要修改发布应用。稍稍遗憾的地方,一是性能应该还有提升空间(相比较j2v8);二是不支持es6,不过这个关系不大

There (be) some blue berry jam in the box。

is看jam,是不可数名词,用单数

java 让jComboBox的字体居中显示,

jcomboBox.setRenderer(new MyCellRenderer());class MyCellRenderer extends JLabel implements ListCellRenderer { public MyCellRenderer() { setOpaque(true); } public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { setBackground(isSelected ? Color.BLUE : Color.LIGHT_GRAY); setHorizontalAlignment(SwingConstants.CENTER); setText(value.toString()); return this; } }

java 项目部署

你好!图就不贴了!*****数据库是tomcat6开发!!******俺震惊了!!部署到tomcat可以有几种方式:1.在myeclipse工程的webRoot(名称有可能不同)目录下内容拷贝到tomcat下的webapps目录下,将该webRoot目录名称改为你的项目名称即可。2.使用myeclipse提供的导出功能,将工程导出为war包,将此war包让入tomcat的webapps目录下,启动tomcat后会自动部署。3.通过配置文件来指定tomcat发布项目的路径,其实大概原理就是通过一个配置文件,指定方法1的webRoot目录路径及运行时所需的环境(比如数据源之类的)。---------------------------------------------------------------------------------------------------

JAVA无法登录,安全阻止

您可以在 Java 控制面板中更改此行为

在 java ee ide 中maven dependency scope:provide不想让其deploy

scope是provided 不是provide

java deploy是什么意思

部署项目!

java中怎样把输入的基本英文单词按首字母顺序排列?

ASC码是按字母序的 所以你可以用asc码来排序

请问在JAVA中如何删除一个对象,也就是释放一个对象所占的内存.

前面是我自己理解的后面是复制的 java有自动垃圾回收机制当垃圾收集器判断已经没有任何引用指向对象的时候,会调用对象的finalize方法来释放对象占据的内存空间~ java中垃圾回收以前听老师讲好像是内存满了他才去做一次整体垃圾回收,在回收垃圾的同时会调用finalize方法.你在构造一个类时可以构造一个类时覆盖他的finalize方法以便于该类在被垃圾回收时执行一些代码,比如释放资源. 1.JVM的gc概述 gc即垃圾收集机制是指jvm用于释放那些不再使用的对象所占用的内存。java语言并不要求jvm有gc,也没有规定gc如何工作。不过常用的jvm都有gc,而且大多数gc都使用类似的算法管理内存和执行收集操作。 在充分理解了垃圾收集算法和执行过程后,才能有效的优化它的性能。有些垃圾收集专用于特殊的应用程序。比如,实时应用程序主要是为了避免垃圾收集中断,而大多数OLTP应用程序则注重整体效率。理解了应用程序的工作负荷和jvm支持的垃圾收集算法,便可以进行优化配置垃圾收集器。 垃圾收集的目的在于清除不再使用的对象。gc通过确定对象是否被活动对象引用来确定是否收集该对象。gc首先要判断该对象是否是时候可以收集。两种常用的方法是引用计数和对象引用遍历。 1.1.引用计数 引用计数存储对特定对象的所有引用数,也就是说,当应用程序创建引用以及引用超出范围时,jvm必须适当增减引用数。当某对象的引用数为0时,便可以进行垃圾收集。 1.2.对象引用遍历 早期的jvm使用引用计数,现在大多数jvm采用对象引用遍历。对象引用遍历从一组对象开始,沿着整个对象图上的每条链接,递归确定可到达(reachable)的对象。如果某对象不能从这些根对象的一个(至少一个)到达,则将它作为垃圾收集。在对象遍历阶段,gc必须记住哪些对象可以到达,以便删除不可到达的对象,这称为标记(marking)对象。 下一步,gc要删除不可到达的对象。删除时,有些gc只是简单的扫描堆栈,删除未标记的未标记的对象,并释放它们的内存以生成新的对象,这叫做清除(sweeping)。这种方法的问题在于内存会分成好多小段,而它们不足以用于新的对象,但是组合起来却很大。因此,许多gc可以重新组织内存中的对象,并进行压缩(compact),形成可利用的空间。 为此,gc需要停止其他的活动活动。这种方法意味着所有与应用程序相关的工作停止,只有gc运行。结果,在响应期间增减了许多混杂请求。另外,更复杂的 gc不断增加或同时运行以减少或者清除应用程序的中断。有的gc使用单线程完成这项工作,有的则采用多线程以增加效率。 2.几种垃圾回收机制 2.1.标记-清除收集器 这种收集器首先遍历对象图并标记可到达的对象,然后扫描堆栈以寻找未标记对象并释放它们的内存。这种收集器一般使用单线程工作并停止其他操作。 2.2.标记-压缩收集器 有时也叫标记-清除-压缩收集器,与标记-清除收集器有相同的标记阶段。在第二阶段,则把标记对象复制到堆栈的新域中以便压缩堆栈。这种收集器也停止其他操作。 2.3.复制收集器 这种收集器将堆栈分为两个域,常称为半空间。每次仅使用一半的空间,jvm生成的新对象则放在另一半空间中。gc运行时,它把可到达对象复制到另一半空间,从而压缩了堆栈。这种方法适用于短生存期的对象,持续复制长生存期的对象则导致效率降低。 2.4.增量收集器 增量收集器把堆栈分为多个域,每次仅从一个域收集垃圾。这会造成较小的应用程序中断。 2.5.分代收集器 这种收集器把堆栈分为两个或多个域,用以存放不同寿命的对象。jvm生成的新对象一般放在其中的某个域中。过一段时间,继续存在的对象将获得使用期并转入更长寿命的域中。分代收集器对不同的域使用不同的算法以优化性能。 2.6.并发收集器 并发收集器与应用程序同时运行。这些收集器在某点上(比如压缩时)一般都不得不停止其他操作以完成特定的任务,但是因为其他应用程序可进行其他的后台操作,所以中断其他处理的实际时间大大降低。 2.7.并行收集器 并行收集器使用某种传统的算法并使用多线程并行的执行它们的工作。在多cpu机器上使用多线程技术可以显著的提高java应用程序的可扩展性。 3.Sun HotSpot 1.4.1 JVM堆大小的调整 Sun HotSpot 1.4.1使用分代收集器,它把堆分为三个主要的域:新域、旧域以及永久域。Jvm生成的所有新对象放在新域中。一旦对象经历了一定数量的垃圾收集循环后,便获得使用期并进入旧域。在永久域中jvm则存储class和method对象。就配置而言,永久域是一个独立域并且不认为是堆的一部分。 下面介绍如何控制这些域的大小。可使用-Xms和-Xmx 控制整个堆的原始大小或最大值。 下面的命令是把初始大小设置为128M: java –Xms128m –Xmx256m为控制新域的大小,可使用-XX:NewRatio设置新域在堆中所占的比例。 下面的命令把整个堆设置成128m,新域比率设置成3,即新域与旧域比例为1:3,新域为堆的1/4或32M: java –Xms128m –Xmx128m –XX:NewRatio =3可使用-XX:NewSize和-XX:MaxNewsize设置新域的初始值和最大值。 下面的命令把新域的初始值和最大值设置成64m: java –Xms256m –Xmx256m –Xmn64m 永久域默认大小为4m。运行程序时,jvm会调整永久域的大小以满足需要。每次调整时,jvm会对堆进行一次完全的垃圾收集。 使用-XX:MaxPerSize标志来增加永久域搭大小。在WebLogic Server应用程序加载较多类时,经常需要增加永久域的最大值。当jvm加载类时,永久域中的对象急剧增加,从而使jvm不断调整永久域大小。为了避免调整,可使用-XX:PerSize标志设置初始值。 下面把永久域初始值设置成32m,最大值设置成64m。 java -Xms512m -Xmx512m -Xmn128m -XX:PermSize=32m -XX:MaxPermSize=64m 默认状态下,HotSpot在新域中使用复制收集器。该域一般分为三个部分。第一部分为Eden,用于生成新的对象。另两部分称为救助空间,当Eden 充满时,收集器停止应用程序,把所有可到达对象复制到当前的from救助空间,一旦当前的from救助空间充满,收集器则把可到达对象复制到当前的to救助空间。From和to救助空间互换角色。维持活动的对象将在救助空间不断复制,直到它们获得使用期并转入旧域。使用-XX:SurvivorRatio 可控制新域子空间的大小。 同NewRation一样,SurvivorRation规定某救助域与Eden空间的比值。比如,以下命令把新域设置成64m,Eden占32m,每个救助域各占16m: java -Xms256m -Xmx256m -Xmn64m -XX:SurvivorRation =2 如前所述,默认状态下HotSpot对新域使用复制收集器,对旧域使用标记-清除-压缩收集器。在新域中使用复制收集器有很多意义,因为应用程序生成的大部分对象是短寿命的。理想状态下,所有过渡对象在移出Eden空间时将被收集。如果能够这样的话,并且移出Eden空间的对象是长寿命的,那么理论上可以立即把它们移进旧域,避免在救助空间反复复制。但是,应用程序不能适合这种理想状态,因为它们有一小部分中长寿命的对象。最好是保持这些中长寿命的对象并放在新域中,因为复制小部分的对象总比压缩旧域廉价。为控制新域中对象的复制,可用-XX:TargetSurvivorRatio控制救助空间的比例(该值是设置救助空间的使用比例。如救助空间位1M,该值50表示可用500K)。该值是一个百分比,默认值是50。当较大的堆栈使用较低的 sruvivorratio时,应增加该值到80至90,以更好利用救助空间。用-XX:maxtenuring threshold可控制上限。 为放置所有的复制全部发生以及希望对象从eden扩展到旧域,可以把MaxTenuring Threshold设置成0。设置完成后,实际上就不再使用救助空间了,因此应把SurvivorRatio设成最大值以最大化Eden空间,设置如下: java … -XX:MaxTenuringThreshold=0 –XX:SurvivorRatio=50000 … 4.BEA JRockit JVM的使用 Bea WebLogic 8.1使用的新的JVM用于Intel平台。在Bea安装完毕的目录下可以看到有一个类似于jrockit81sp1_141_03的文件夹。这就是 Bea新JVM所在目录。不同于HotSpot把Java字节码编译成本地码,它预先编译成类。JRockit还提供了更细致的功能用以观察JVM的运行状态,主要是独立的GUI控制台(只能适用于使用Jrockit才能使用jrockit81sp1_141_03自带的console监控一些cpu及 memory参数)或者WebLogic Server控制台。 Bea JRockit JVM支持4种垃圾收集器: 4.1.1.分代复制收集器 它与默认的分代收集器工作策略类似。对象在新域中分配,即JRockit文档中的nursery。这种收集器最适合单cpu机上小型堆操作。 4.1.2.单空间并发收集器 该收集器使用完整堆,并与背景线程共同工作。尽管这种收集器可以消除中断,但是收集器需花费较长的时间寻找死对象,而且处理应用程序时收集器经常运行。如果处理器不能应付应用程序产生的垃圾,它会中断应用程序并关闭收集。 分代并发收集器这种收集器在护理域使用排它复制收集器,在旧域中则使用并发收集器。由于它比单空间共同发生收集器中断频繁,因此它需要较少的内存,应用程序的运行效率也较高,注意,过小的护理域可以导致大量的临时对象被扩展到旧域中。这会造成收集器超负荷运作,甚至采用排它性工作方式完成收集。 4.1.3.并行收集器 该收集器也停止其他进程的工作,但使用多线程以加速收集进程。尽管它比其他的收集器易于引起长时间的中断,但一般能更好的利用内存,程序效率也较高。 默认状态下,JRockit使用分代并发收集器。要改变收集器,可使用-Xgc:,对应四个收集器分别为 gencopy,singlecon,gencon以及parallel。可使用-Xms和-Xmx设置堆的初始大小和最大值。要设置护理域,则使用- Xns:java –jrockit –Xms512m –Xmx512m –Xgc:gencon –Xns128m…尽管JRockit支持-verbose:gc开关,但它输出的信息会因收集器的不同而异。JRockit还支持memory、 load和codegen的输出。 注意 :如果 使用JRockit JVM的话还可以使用WLS自带的console(C:eajrockit81sp1_141_03in下)来监控一些数据,如cpu, memery等。要想能构监控必须在启动服务时startWeblogic.cmd中加入-Xmanagement参数。 5.如何从JVM中获取信息来进行调整 -verbose.gc开关可显示gc的操作内容。打开它,可以显示最忙和最空闲收集行为发生的时间、收集前后的内存大小、收集需要的时间等。打开- xx:+ printgcdetails开关,可以详细了解gc中的变化。打开-XX: + PrintGCTimeStamps开关,可以了解这些垃圾收集发生的时间,自jvm启动以后以秒计量。最后,通过-xx: + PrintHeapAtGC开关了解堆的更详细的信息。为了了解新域的情况,可以通过-XX:=PrintTenuringDistribution开关了解获得使用期的对象权。 6.Pdm系统JVM调整 6.1.服务器:前提内存1G 单CPU 可通过如下参数进行调整:-server 启用服务器模式(如果CPU多,服务器机建议使用此项) -Xms,-Xmx一般设为同样大小。 800m -Xmn 是将NewSize与MaxNewSize设为一致。320m -XX:PerSize 64m -XX:NewSize 320m 此值设大可调大新对象区,减少Full GC次数 -XX:MaxNewSize 320m -XX:NewRato NewSize设了可不设。 -XX: SurvivorRatio -XX:userParNewGC 可用来设置并行收集 -XX:ParallelGCThreads 可用来增加并行度 -XXUseParallelGC 设置后可以使用并行清除收集器 -XX:UseAdaptiveSizePolicy 与上面一个联合使用效果更好,利用它可以自动优化新域大小以及救助空间比值 6.2.客户机:通过在JNLP文件中设置参数来调整客户端JVM JNLP中参数:initial-heap-size和max-heap-size 这可以在framework的RequestManager中生成JNLP文件时加入上述参数,但是这些值是要求根据客户机的硬件状态变化的(如客户机的内存大小等)。建议这两个参数值设为客户机可用内存的60%(有待测试)。为了在动态生成JNLP时以上两个参数值能够随客户机不同而不同,可靠虑获得客户机系统信息并将这些嵌到首页index.jsp中作为连接请求的参数。 在设置了上述参数后可以通过Visualgc 来观察垃圾回收的一些参数状态,再做相应的调整来改善性能。一般的标准是减少fullgc的次数,最好硬件支持使用并行垃圾回收(要求多CPU)。

如何在deploy的时候只上传jar包,而不传war包

war插件有个标签<packagingExcludes>意思是打包时不包含哪些文件,写具体的文件或目录,多个用逗号隔开。例子:<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-war-plugin</artifactId><version>2.2</version><configuration><webappDirectory>WebContent</webappDirectory><!-- 必须指定,否则默认会变成在target/war/work 导致被打包进war文件,指定后为target/work --><workDirectory>${project.build.directory}/work</workDirectory><useCache>false</useCache><packagingExcludes>WEB-INF/classes/**/*.*,WEB-INF/lib/**/*</packagingExcludes><archive><addMavenDescriptor>true</addMavenDescriptor></archive></configuration></plugin>

手机JAVA下游戏出现out of memery,怎么解决

outofmomery(堆栈外溢)这个是说你手机的java堆栈比这个软件的需要的运行内存小,所以出现错误!

Jamiroquai的《The Kids》 歌词

歌曲名:The Kids歌手:Jamiroquai专辑:Return Of The Space CowboyEminem- The KidsAnd everyone should get along..Okay children quiet down, quiet downChildren I"d like to introduce our new substitute teacher for the dayHis name is Mr. ShadyChildren quiet down pleaseBrian don"t throw that (Shut UP!)Mr. Shady will be your new substitutewhile Mr. Kaniff is out with pneumonia (He"s got AIDS!)Good luck Mr. ShadyHi there little boys and girls (Fuck you!)Today we"re gonna to learn how to poison squirrelsBut first, I"d like you to meet my friend Bob (Huh?)Say hi Bob! ("Hi Bob") Bob"s 30 and still lives with his momand he don"t got a job, cause Bob sits at home and smokes potbut his twelve-year old brother looks up to him an awful lotAnd Bob likes to hang out at the local waffle spotand wait in the parking lot for waitresses off the clockwhen it"s late and the lot gets dark and fake like he walks his dogDrag "em in the woods and go straight to the chopping blocks (AHH!)And even if they escaped and they got the copsthe ladies would all be so afraid, they would drop the charge"til one night Mrs. Stacey went off the jobwhen she felt someone grab her whole face and said not to talkBut Stacey knew it was Bob and said knock it offBut Bob wouldn"t knock it off cause he"s crazy and off his rockerCrazier than Slim Shady is off the vodkaYou couldn"t even take him to Dre"s to get Bob a "Dr."He grabbed S tace" by the legs as chopped it off herand dropped her off in the lake for the cops to find herBut ever since the day Stacey went off to wanderthey never found her, and Bob still hangs at the waffle dinerAnd that"s the story of Bob and his marijuana,and what it might do to youSo see if the squirrels want any - it"s bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?My penis is the size of a peanut, have you seen it?FUCK NO you ain"t seen it, it"s the size of a peanut (Huh?)Speakin of peanuts, you know what else is bad for squirrels?Ecstasy is the worst drug in the worldIf someone ever offers it to you, don"t do itKids two hits"ll probably drain all your spinal fluidand spinal fluid is final, you won"t get it backSo don"t get attached, it"ll attack every bone in your backMeet Zach, twenty-one years oldAfter hangin out with some friends at a frat party, he gets boldand decides to try five, when he"s bribed by five guysand peer pressure will win every time you try to fight itSuddenly, he starts to convulse and his pulse goes into hyperdriveand his eyes roll back in his skull {blblblblblb}His back starts tah - look like the McDonald"s ArchesHe"s on Donald"s carpet, layin horizontal barfin {BLEH}And everyone in the apartment starts laughin at him"Hey Adam, Zach is a jackass, look at him!"cause they took it too, so they think it"s funnySo they"re laughing at basically nothing except maybe wasting his moneyMeanwhile, Zach"s in a coma, the action is overand his back and his shoulders hunched up like he"s practicin yogaAnd that"s the story of Zach, the ecstasy maniacSo don"t even feed that to squirrels class, cause it"s bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?And last but not least, one of the most humungousproblems among young people today, is fungusIt grows from cow manure, they pick it out, wipe it off,bag it up, and you put it right in your mouth and chew itYum yum! Then you start to see some dumb stuffAnd everything slows down when you eat some of "em..And sometimes you see things that aren"t there (Like what?)Like fat woman in G-strings with orange hair(Mr. Shady what"s a G-string?) It"s yarn ClaireWomen stick "em up their behinds, go out and wear "em (Huh?)And if you swallow too much of the magic mushroomsWhoops, did I say magic mushrooms?I meant fungus Ya tongue gets, all swoll up like a cow"s tongue (How come?)cause it comes from a cow"s dung (Gross!!)See drugs are bad, it"s a common factBut your mom and dad, know that"s all that I"m good at (Oh!)But don"t be me, cause if you grow up and you go and O.D.They"re gonna come for me and I"ma have to grow a goateeand get a disguise and hide, cause it"ll be my faultcause I"m bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?Come on children, clap along (Shut UP!)Sing along children (Suck my motherfuckin dick!)Drugs are just bad, drugs are just bad (South Park is gonna sue me!)So don"t do drugs (Suck my motherfuckin penis!)so there"ll be more for me (Hippie! God damnit!)(Mushrooms killed Kenny! fart Ewww, ahhh!)(So, fucked up, right now..)http://music.baidu.com/song/9079971

Jamiroquai的《The Kids》 歌词

歌曲名:The Kids歌手:Jamiroquai专辑:Emergecy On Planet Earth/Return Of The Space CowboyEminem- The KidsAnd everyone should get along..Okay children quiet down, quiet downChildren I"d like to introduce our new substitute teacher for the dayHis name is Mr. ShadyChildren quiet down pleaseBrian don"t throw that (Shut UP!)Mr. Shady will be your new substitutewhile Mr. Kaniff is out with pneumonia (He"s got AIDS!)Good luck Mr. ShadyHi there little boys and girls (Fuck you!)Today we"re gonna to learn how to poison squirrelsBut first, I"d like you to meet my friend Bob (Huh?)Say hi Bob! ("Hi Bob") Bob"s 30 and still lives with his momand he don"t got a job, cause Bob sits at home and smokes potbut his twelve-year old brother looks up to him an awful lotAnd Bob likes to hang out at the local waffle spotand wait in the parking lot for waitresses off the clockwhen it"s late and the lot gets dark and fake like he walks his dogDrag "em in the woods and go straight to the chopping blocks (AHH!)And even if they escaped and they got the copsthe ladies would all be so afraid, they would drop the charge"til one night Mrs. Stacey went off the jobwhen she felt someone grab her whole face and said not to talkBut Stacey knew it was Bob and said knock it offBut Bob wouldn"t knock it off cause he"s crazy and off his rockerCrazier than Slim Shady is off the vodkaYou couldn"t even take him to Dre"s to get Bob a "Dr."He grabbed S tace" by the legs as chopped it off herand dropped her off in the lake for the cops to find herBut ever since the day Stacey went off to wanderthey never found her, and Bob still hangs at the waffle dinerAnd that"s the story of Bob and his marijuana,and what it might do to youSo see if the squirrels want any - it"s bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?My penis is the size of a peanut, have you seen it?FUCK NO you ain"t seen it, it"s the size of a peanut (Huh?)Speakin of peanuts, you know what else is bad for squirrels?Ecstasy is the worst drug in the worldIf someone ever offers it to you, don"t do itKids two hits"ll probably drain all your spinal fluidand spinal fluid is final, you won"t get it backSo don"t get attached, it"ll attack every bone in your backMeet Zach, twenty-one years oldAfter hangin out with some friends at a frat party, he gets boldand decides to try five, when he"s bribed by five guysand peer pressure will win every time you try to fight itSuddenly, he starts to convulse and his pulse goes into hyperdriveand his eyes roll back in his skull {blblblblblb}His back starts tah - look like the McDonald"s ArchesHe"s on Donald"s carpet, layin horizontal barfin {BLEH}And everyone in the apartment starts laughin at him"Hey Adam, Zach is a jackass, look at him!"cause they took it too, so they think it"s funnySo they"re laughing at basically nothing except maybe wasting his moneyMeanwhile, Zach"s in a coma, the action is overand his back and his shoulders hunched up like he"s practicin yogaAnd that"s the story of Zach, the ecstasy maniacSo don"t even feed that to squirrels class, cause it"s bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?And last but not least, one of the most humungousproblems among young people today, is fungusIt grows from cow manure, they pick it out, wipe it off,bag it up, and you put it right in your mouth and chew itYum yum! Then you start to see some dumb stuffAnd everything slows down when you eat some of "em..And sometimes you see things that aren"t there (Like what?)Like fat woman in G-strings with orange hair(Mr. Shady what"s a G-string?) It"s yarn ClaireWomen stick "em up their behinds, go out and wear "em (Huh?)And if you swallow too much of the magic mushroomsWhoops, did I say magic mushrooms?I meant fungus Ya tongue gets, all swoll up like a cow"s tongue (How come?)cause it comes from a cow"s dung (Gross!!)See drugs are bad, it"s a common factBut your mom and dad, know that"s all that I"m good at (Oh!)But don"t be me, cause if you grow up and you go and O.D.They"re gonna come for me and I"ma have to grow a goateeand get a disguise and hide, cause it"ll be my faultcause I"m bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?Come on children, clap along (Shut UP!)Sing along children (Suck my motherfuckin dick!)Drugs are just bad, drugs are just bad (South Park is gonna sue me!)So don"t do drugs (Suck my motherfuckin penis!)so there"ll be more for me (Hippie! God damnit!)(Mushrooms killed Kenny! fart Ewww, ahhh!)(So, fucked up, right now..)http://music.baidu.com/song/9878201

Jamiroquai的《The Kids》 歌词

歌曲名:The Kids歌手:Jamiroquai专辑:The Return Of The Space CowboyEminem- The KidsAnd everyone should get along..Okay children quiet down, quiet downChildren I"d like to introduce our new substitute teacher for the dayHis name is Mr. ShadyChildren quiet down pleaseBrian don"t throw that (Shut UP!)Mr. Shady will be your new substitutewhile Mr. Kaniff is out with pneumonia (He"s got AIDS!)Good luck Mr. ShadyHi there little boys and girls (Fuck you!)Today we"re gonna to learn how to poison squirrelsBut first, I"d like you to meet my friend Bob (Huh?)Say hi Bob! ("Hi Bob") Bob"s 30 and still lives with his momand he don"t got a job, cause Bob sits at home and smokes potbut his twelve-year old brother looks up to him an awful lotAnd Bob likes to hang out at the local waffle spotand wait in the parking lot for waitresses off the clockwhen it"s late and the lot gets dark and fake like he walks his dogDrag "em in the woods and go straight to the chopping blocks (AHH!)And even if they escaped and they got the copsthe ladies would all be so afraid, they would drop the charge"til one night Mrs. Stacey went off the jobwhen she felt someone grab her whole face and said not to talkBut Stacey knew it was Bob and said knock it offBut Bob wouldn"t knock it off cause he"s crazy and off his rockerCrazier than Slim Shady is off the vodkaYou couldn"t even take him to Dre"s to get Bob a "Dr."He grabbed S tace" by the legs as chopped it off herand dropped her off in the lake for the cops to find herBut ever since the day Stacey went off to wanderthey never found her, and Bob still hangs at the waffle dinerAnd that"s the story of Bob and his marijuana,and what it might do to youSo see if the squirrels want any - it"s bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?My penis is the size of a peanut, have you seen it?FUCK NO you ain"t seen it, it"s the size of a peanut (Huh?)Speakin of peanuts, you know what else is bad for squirrels?Ecstasy is the worst drug in the worldIf someone ever offers it to you, don"t do itKids two hits"ll probably drain all your spinal fluidand spinal fluid is final, you won"t get it backSo don"t get attached, it"ll attack every bone in your backMeet Zach, twenty-one years oldAfter hangin out with some friends at a frat party, he gets boldand decides to try five, when he"s bribed by five guysand peer pressure will win every time you try to fight itSuddenly, he starts to convulse and his pulse goes into hyperdriveand his eyes roll back in his skull {blblblblblb}His back starts tah - look like the McDonald"s ArchesHe"s on Donald"s carpet, layin horizontal barfin {BLEH}And everyone in the apartment starts laughin at him"Hey Adam, Zach is a jackass, look at him!"cause they took it too, so they think it"s funnySo they"re laughing at basically nothing except maybe wasting his moneyMeanwhile, Zach"s in a coma, the action is overand his back and his shoulders hunched up like he"s practicin yogaAnd that"s the story of Zach, the ecstasy maniacSo don"t even feed that to squirrels class, cause it"s bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?And last but not least, one of the most humungousproblems among young people today, is fungusIt grows from cow manure, they pick it out, wipe it off,bag it up, and you put it right in your mouth and chew itYum yum! Then you start to see some dumb stuffAnd everything slows down when you eat some of "em..And sometimes you see things that aren"t there (Like what?)Like fat woman in G-strings with orange hair(Mr. Shady what"s a G-string?) It"s yarn ClaireWomen stick "em up their behinds, go out and wear "em (Huh?)And if you swallow too much of the magic mushroomsWhoops, did I say magic mushrooms?I meant fungus Ya tongue gets, all swoll up like a cow"s tongue (How come?)cause it comes from a cow"s dung (Gross!!)See drugs are bad, it"s a common factBut your mom and dad, know that"s all that I"m good at (Oh!)But don"t be me, cause if you grow up and you go and O.D.They"re gonna come for me and I"ma have to grow a goateeand get a disguise and hide, cause it"ll be my faultcause I"m bad for youSee children, drugs are bahhhd (c"mon)and if you don"t believe me, ask ya dahhhd (ask him man)and if you don"t believe him, ask ya mom (that"s right)She"ll tell you how she does "em all the time (she will)So kids say no to drugs (that"s right)So you don"t act like everyone else does (uh-huh)Then there"s really nothin else to say (sing along)Drugs are just bad, mmm"kay?Come on children, clap along (Shut UP!)Sing along children (Suck my motherfuckin dick!)Drugs are just bad, drugs are just bad (South Park is gonna sue me!)So don"t do drugs (Suck my motherfuckin penis!)so there"ll be more for me (Hippie! God damnit!)(Mushrooms killed Kenny! fart Ewww, ahhh!)(So, fucked up, right now..)http://music.baidu.com/song/8764076

Jason Chen的《Skyscraper》 歌词

歌曲名:Skyscraper歌手:Jason Chen专辑:The Covers, Vol. 3Skyscraper - Jason ChenSkies are cryingI"m watchingCatching tear drops in my handsOnly silence as it"s endingLike we never had a chanceDo you have toMake me feel likeThere is nothing left but meYou can take everything I haveYou can break everything I amLike I"m made of glassLike I"m made of paperGo on and try to tear me downI will be rising from the groundLike a skyscraperLike a skyscraperAs the smoke clearsI awakenand untangle you from meWould it make you feel better to watch me while I bleedAll my windows still are brokenBut I"m standing on my feetYou can take everything I haveYou can break everything I amLike I"m made of glassLike I"m made of paperGo on and try to tear me downI will be rising from the groundLike a skyscraperLike a skyscraperGo run run runI am gonna stay right hereWatch you disappearyeeeaaahGo run run runYeah it"s a long way downBut I"m closer to the clouds of hereYou can take everything I haveYou can break everything I amLike I"m made of glassLike I"m made of paperGo on and try to tap me downI will be rising from the groundLike a skyscraperLike a skyscraperLike a skyscraperLike a skyscraperhttp://music.baidu.com/song/55710511

java中的 Placeholder 是什么意思,有什么作用?谢谢!!

这应该是程序员自己定义的一个类,因为API里面米有,命名的时候第一个单词place大写,holder小写,按照规则,应该是一个类,希望能帮到您,记得选我哦,谢谢

求x-japan forever love中文歌词

把Crucify my Love翻成抑制吾爱 ,一点水平都没有,正确的是我的爱钉死在十字架上

跪求X Japan的《Forever Love》 罗马音对照歌词

[ti:forever love] [ar:x-japan] [al:X japan on piano] [by:] [offset:500] [00:49.78]もう一人で步けない 已经不能独立支撑下去了 [00:57.32]时代の风が强ぎて 时代的风暴实在过于强劲 [01:05.11]Ah 伤つくこと何て Ah 本已习惯 [01:11.93]惯れたはずだけど今は 承受伤痛 [01:20.50]Ah このまま抱きしめて Ah 就这样的拥抱 [01:28.24]ねれたままの心を 被泪浸透的心 [01:35.94]变わり续けるこの时代に 在不停变更的时代里 [01:42.47]变われない爱があるなら 若有永恒的爱       [01:54.41]Will you hold my heart 你可会拥有我的心 [01:58.32]泪受けとめて 请替我擦干眼泪 [02:05.83]もう坏れそうなAll my heart 伤透了我的心 [02:21.09]Forever love  Forever dream 永恒的爱 永恒的梦 [02:28.66]溢れる想いだけが 许多梦想 [02:36.54]激しく切なく时闲を埋め尽くす 激烈痛切的把时间掩埋 [02:51.82]Oh tell me why Oh 告诉我为何 [03:03.74]All I see 在我的内心 [03:05.21]is blue in my heart 只能看见悲伤 [03:11.15]Will you stay with me 你会留在我身边吗 [03:15.53]风が过ぎ去るまで 随着掠过的风 [03:23.14]また溢れだす All my tears 溢出我所有的眼泪     [03:37.85]Forever love  Forever dream 永恒的爱 永恒的梦 [03:45.54]このままそばにいて 就这样的留在我的身边 [03:53.20]夜明に震える 请拥抱这颗 [04:04.54]心を抱きしめて 因黎明而颤抖的心 [04:08.69]Oh stay with me Oh 留在我的身边     [05:26.99]Ah すべが终わればいい Ah 让一切都结束吧 [05:34.15]终りのないこの夜に 在这漫长的夜里 [05:41.73]失うもの时て Ah 失去什么都好 [05:48.51]何もないあなただけ 没关系只要有你 [06:00.24]Forever love  Forever dream 永恒的爱 永恒的梦 [06:07.64]このままそばにいて 就这样留在我身边吧 [06:15.36]夜明に震える 请拥抱这颗 [06:19.22]心を抱きしめて 因黎明而颤抖的心 [06:34.96]Oh stay with me Oh 留在我的身边 [06:38.71]风が过ぎ去るまで 风略过去了 [06:46.60]もう谁よりもそばに 只希望有你在声旁 [07:01.34]Forever love  Forever dream 永恒的爱 永恒的梦 [07:09.20]これ以上步けない 已经不能再支撑下去了 [07:16.98]Oh tell me why  Oh tell me true Oh 告诉我为何 Oh 叫我尝试 [07:24.91]教えて生きる意味を 让我知道生存的真谛 [07:32.31]Forever love  Forever dream 永恒的爱 永恒的梦 [07:39.86]溢れる泪の中 溢出的泪水中 [07:47.56]辉く季节が永远に 光辉的季节 [07:55.05]变わるまで 永远不变 [08:03.04]Forever love 永恒的爱 罗马音 mou hitori de arukenai toki no kaze ga tsuyosugite Ah kizutsuku koto nante nareta hazu dakedo ima wa... Ah kono mama dakishimete nureta mama no kokoro o kawaritsuzukeru kono toki ni kawaranai ai ga aru nara Will you hold my heart namida uketomete mou kowaresou na All my heart Forever Love Forever Dream afureru omoi dake ga hageshiku setsunaku jikan o umetsukusu Oh Tell my why .....All I see is blue in my heart.... Will you stay with me kaze ga sugisaru made mata afuredasu All my tears Forever Love Forever Dream kono mama soba ni ite yoake ni furueru kokoro dakishimete Oh Stay with me Ah subete ga owareba ii owari no nai kono yoru ni Ah ushinau mono nante nanimo nai anata da-ke Forever Love Forever Dream kono mama soba ni ite yoake ni furueru kokoro dakishimete Ah Will you stay with me kaze ga sugiaru made mou dare yori mo soba ni Forever Love Forever Dream kore ijyou arukenai Oh Tell me why Oh Tell me true oshiete ikiru imi o Forever Love Forever Dream afureru namida no naka kagayaku kisetsu ga eien ni kawaru made Forever Love

跪求X Japan的《Forever Love》 罗马音对照歌词

[ti:forever love] [ar:x-japan] [al:X japan on piano] [by:] [offset:500] [00:49.78]もう一人で步けない 已经不能独立支撑下去了 [00:57.32]时代の风が强ぎて 时代的风暴实在过于强劲 [01:05.11]Ah 伤つくこと何て Ah 本已习惯 [01:11.93]惯れたはずだけど今は 承受伤痛 [01:20.50]Ah このまま抱きしめて Ah 就这样的拥抱 [01:28.24]ねれたままの心を 被泪浸透的心 [01:35.94]变わり续けるこの时代に 在不停变更的时代里 [01:42.47]变われない爱があるなら 若有永恒的爱       [01:54.41]Will you hold my heart 你可会拥有我的心 [01:58.32]泪受けとめて 请替我擦干眼泪 [02:05.83]もう坏れそうなAll my heart 伤透了我的心 [02:21.09]Forever love  Forever dream 永恒的爱 永恒的梦 [02:28.66]溢れる想いだけが 许多梦想 [02:36.54]激しく切なく时闲を埋め尽くす 激烈痛切的把时间掩埋 [02:51.82]Oh tell me why Oh 告诉我为何 [03:03.74]All I see 在我的内心 [03:05.21]is blue in my heart 只能看见悲伤 [03:11.15]Will you stay with me 你会留在我身边吗 [03:15.53]风が过ぎ去るまで 随着掠过的风 [03:23.14]また溢れだす All my tears 溢出我所有的眼泪     [03:37.85]Forever love  Forever dream 永恒的爱 永恒的梦 [03:45.54]このままそばにいて 就这样的留在我的身边 [03:53.20]夜明に震える 请拥抱这颗 [04:04.54]心を抱きしめて 因黎明而颤抖的心 [04:08.69]Oh stay with me Oh 留在我的身边     [05:26.99]Ah すべが终わればいい Ah 让一切都结束吧 [05:34.15]终りのないこの夜に 在这漫长的夜里 [05:41.73]失うもの时て Ah 失去什么都好 [05:48.51]何もないあなただけ 没关系只要有你 [06:00.24]Forever love  Forever dream 永恒的爱 永恒的梦 [06:07.64]このままそばにいて 就这样留在我身边吧 [06:15.36]夜明に震える 请拥抱这颗 [06:19.22]心を抱きしめて 因黎明而颤抖的心 [06:34.96]Oh stay with me Oh 留在我的身边 [06:38.71]风が过ぎ去るまで 风略过去了 [06:46.60]もう谁よりもそばに 只希望有你在声旁 [07:01.34]Forever love  Forever dream 永恒的爱 永恒的梦 [07:09.20]これ以上步けない 已经不能再支撑下去了 [07:16.98]Oh tell me why  Oh tell me true Oh 告诉我为何 Oh 叫我尝试 [07:24.91]教えて生きる意味を 让我知道生存的真谛 [07:32.31]Forever love  Forever dream 永恒的爱 永恒的梦 [07:39.86]溢れる泪の中 溢出的泪水中 [07:47.56]辉く季节が永远に 光辉的季节 [07:55.05]变わるまで 永远不变 [08:03.04]Forever love 永恒的爱 罗马音 mou hitori de arukenai toki no kaze ga tsuyosugite Ah kizutsuku koto nante nareta hazu dakedo ima wa... Ah kono mama dakishimete nureta mama no kokoro o kawaritsuzukeru kono toki ni kawaranai ai ga aru nara Will you hold my heart namida uketomete mou kowaresou na All my heart Forever Love Forever Dream afureru omoi dake ga hageshiku setsunaku jikan o umetsukusu Oh Tell my why .....All I see is blue in my heart.... Will you stay with me kaze ga sugisaru made mata afuredasu All my tears Forever Love Forever Dream kono mama soba ni ite yoake ni furueru kokoro dakishimete Oh Stay with me Ah subete ga owareba ii owari no nai kono yoru ni Ah ushinau mono nante nanimo nai anata da-ke Forever Love Forever Dream kono mama soba ni ite yoake ni furueru kokoro dakishimete Ah Will you stay with me kaze ga sugiaru made mou dare yori mo soba ni Forever Love Forever Dream kore ijyou arukenai Oh Tell me why Oh Tell me true oshiete ikiru imi o Forever Love Forever Dream afureru namida no naka kagayaku kisetsu ga eien ni kawaru made Forever Love

Java 设计一个clock类 要求实现时针,分针,秒针

-----------------------------------ClockPanel.java-------------------------------------------------------package baidu;import javax.swing.JPanel;import java.awt.*;import java.util.Date;public class ClockPanel extends JPanel { private int hour; private int minute; private int second; private static Date timeNow; public static boolean timeIsSet = true; public static boolean isFirst = true; protected static int hrs; protected static int min; protected static int sec; int width = this.getWidth(); int height = this.getHeight();public ClockPanel(){ } public ClockPanel(int hrs,int min,int sec){ setTime( hrs,min,sec); } public void setTime(int hrs,int min,int sec){ hour = hrs >= 0 && hrs <= 24 ? hrs % 12 :0; minute = min >= 0 && min < 60 ? min : 0; second = sec >=0 && sec <60 ? sec: 0; } public void initTime(){ timeNow = new Date(); hrs = timeNow.getHours(); min = timeNow.getMinutes(); sec = timeNow.getSeconds(); } public void paintComponent(Graphics g){ super.paintComponent(g); ClockPanel clock = new ClockPanel(); if(isFirst){ initTime(); isFirst = false; } clock.setTime(hrs, min, sec); clock.show(g,170,150,100); if (timeIsSet){ try{ //for(int i =0 ; i <10 ; i += 10) Thread.sleep(1000); sec++; if(sec ==60){ sec = 0; min ++ ; if(min == 60){ min = 0; hrs++; if(hrs==12){ hrs = 0; } } } }catch(InterruptedException e){ } repaint(); }} void show (Graphics g,int cx,int cy,int rad){ int hourLenght = (int)(rad * 0.5);//时针的长度 int minuteLenght = (int)(rad * 0.6);//分针的长度 int secondLenght = (int)(rad * 0.9);//秒针的长度 double angle;//角度 //画出钟面 g.drawOval(cx-rad, cy - rad, rad * 2, rad * 2); //画出时针 angle = (double)(hour*60*60 + minute*60 + second)/43200.0*2.0*Math.PI; drawNiddle(g,Color.blue, cx, cy, hourLenght,angle); //画分针 angle = (double)(minute*60 + second)/3600 * 2.0 * Math.PI; drawNiddle(g,Color.blue, cx, cy, minuteLenght,angle); // 画秒针 angle = (double)(second)/60*2.0*Math.PI; drawNiddle(g,Color.blue, cx, cy, secondLenght,angle); } private void drawNiddle(Graphics g ,Color c,int x,int y,int len,double angle){ int ex = (int)(x + len * Math.sin(angle)); int ey = (int)(y - len * Math.cos(angle)); g.setColor(c); g.drawLine(x,y,ex,ey); }}---------------------------------------ClockTest.java--------------------------------------------------------------------package baidu;import java.awt.*;import javax.swing.*;import java.awt.event.*;public class ClockTest extends JFrame { JTextField setHourTime,setMinuteTime,setSecondTime; JLabel hoursInfo,minuteInfo,secondInfo; JButton setTimeButton,confirmButton; JPanel controllPanel; ClockPanel paintPanel;public ClockTest(){ super("Clock"); setHourTime = new JTextField(" 时",2);; setMinuteTime = new JTextField(" 分",2); setSecondTime = new JTextField(" 秒",2); setHourTime.setEditable(false); setMinuteTime.setEditable(false); setSecondTime.setEditable(false);paintPanel = new ClockPanel(); setTimeButton = new JButton("设置时间"); setTimeButton.addActionListener( new ActionListener(){ public void actionPerformed(ActionEvent event){ paintPanel.timeIsSet = false; setHourTime.setEditable(true); setMinuteTime.setEditable(true); setSecondTime.setEditable(true); } }); confirmButton = new JButton("确认"); confirmButton.addActionListener( new ActionListener(){ public void actionPerformed(ActionEvent event){ setHourTime.setEditable(false); setMinuteTime.setEditable(false); setSecondTime.setEditable(false); String h = "",m = "",s = ""; try{ h = setHourTime.getText(); m = setMinuteTime.getText(); s = setSecondTime.getText(); ClockPanel.hrs = Integer.parseInt(h); ClockPanel.min = Integer.parseInt(m); ClockPanel.min = Integer.parseInt(s); System.out.print(ClockPanel.hrs+ " " + ClockPanel.min+ " "+ClockPanel.min ); }catch(NumberFormatException e){ } paintPanel.isFirst = false; paintPanel.setTime(ClockPanel.hrs, ClockPanel.min, ClockPanel.min); paintPanel.show(); paintPanel.timeIsSet = true; paintPanel.repaint(); } });controllPanel = new JPanel(); controllPanel.add(setTimeButton); controllPanel.add(setHourTime); controllPanel.add(setMinuteTime); controllPanel.add(setSecondTime); controllPanel.add(confirmButton); paintPanel = new ClockPanel(); Container container = getContentPane(); container.add(paintPanel,BorderLayout.CENTER); container.add(controllPanel,BorderLayout.NORTH); setSize(400,400); setVisible(true); } public static void main(String[] args) { // TODO 自动生成方法存根 ClockTest application = new ClockTest(); application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }}

java中hash是什么意思

哈希算法,速度快。

Jay-Jay Johanson的《Medicine》 歌词

歌曲名:Medicine歌手:Jay-Jay Johanson专辑:Self-Portrait「Medicine」作词∶leonn作曲∶Tomomi Narimoto歌∶V6どうして仆达は 出逢えたのかな言叶に出来ずに その手を握ったねえ どんな时もこの温もり感じていたい ずっともう离しはしないよほら You"re medicine 笑颜だけですべてが そう辉くmy life君が隣にいるだけで平凡な未来さえ爱おしいYou"re my holy loveどうしてこんなにも 顽张れるのかなちょっと前の仆じゃ 考えられないねえ あの顷よりほんの少し强くなったよ きっともう一人じゃないからほら You"re medicine 触れるだけで高鸣る胸 无邪気なsweet heart君が隣にいるだけで何だって出来る気がしているよYou"re my holy loveねえ 偶然とか运命とか形のないモノでも今は信じられるよほら You"re medicine 笑颜だけですべてが そう辉くmy life君が隣にいるだけで平凡な未来さえ爱おしいYou"re my holy…You"re medicine 触れるだけで高鸣る胸 无邪気なsweet heart君が隣にいるだけで何だって出来る気がしているよYou"re my holy love【 おわり 】http://music.baidu.com/song/2646751

kanci pejagan是哪里

这是一条收费公路的名字,在Cirebon(井里汶)

Suraj Jagan怎么发音

苏拉杰·杰根

Jagan贝尔是坏的嘛

是。Jagan贝尔是一个“恶魔”的玩偶,它是恶灵的附身。Warren夫妇告诉女孩儿们,在一个可怕的夜晚,他们家遭到了一个邪教组织的凶猛入侵。然而邪教徒所留下的不仅仅是鲜血和恐怖,他们还将一个恶毒的灵体导入了安娜贝尔体内。安娜贝尔利用它操控这娃娃杀人。

怎么读取java文件中字符编码格式

1:简单判断是UTF-8或不是UTF-8,因为一般除了UTF-8之外就是GBK,所以就设置默认为GBK。按照给定的字符集存储文件时,在文件的最开头的三个字节中就有可能存储着编码信息,所以,基本的原理就是只要读出文件前三个字节,判定这些字节的值,就可以得知其编码的格式。其实,如果项目运行的平台就是中文操作系统,如果这些文本文件在项目内产生,即开发人员可以控制文本的编码格式,只要判定两种常见的编码就可以了:GBK和UTF-8。由于中文Windows默认的编码是GBK,所以一般只要判定UTF-8编码格式。对于UTF-8编码格式的文本文件,其前3个字节的值就是-17、-69、-65,所以,判定是否是UTF-8编码格式的代码片段如下:File file = new File(path);InputStream in= new java.io.FileInputStream(file);byte[] b = new byte[3];in.read(b);in.close();if (b[0] == -17 && b[1] == -69 && b[2] == -65)System.out.println(file.getName() + ":编码为UTF-8");elseSystem.out.println(file.getName() + ":可能是GBK,也可能是其他编码"); 2:若想实现更复杂的文件编码检测,可以使用一个开源项目cpdetector,它所在的网址是:http://cpdetector.sourceforge.net/。它的类库很小,只有500K左右,cpDetector是基于统计学原理的,不保证完全正确,利用该类库判定文本文件的代码如下:读外部文件(先利用cpdetector检测文件的编码格式,然后用检测到的编码方式去读文件):/*** 利用第三方开源包cpdetector获取文件编码格式** @param path* 要判断文件编码格式的源文件的路径* @author huanglei* @version 2012-7-12 14:05*/public static String getFileEncode(String path) {/** detector是探测器,它把探测任务交给具体的探测实现类的实例完成。* cpDetector内置了一些常用的探测实现类,这些探测实现类的实例可以通过add方法 加进来,如ParsingDetector、* JChardetFacade、ASCIIDetector、UnicodeDetector。* detector按照“谁最先返回非空的探测结果,就以该结果为准”的原则返回探测到的* 字符集编码。使用需要用到三个第三方JAR包:antlr.jar、chardet.jar和cpdetector.jar* cpDetector是基于统计学原理的,不保证完全正确。*/CodepageDetectorProxy detector = CodepageDetectorProxy.getInstance();/** ParsingDetector可用于检查HTML、XML等文件或字符流的编码,构造方法中的参数用于* 指示是否显示探测过程的详细信息,为false不显示。*/detector.add(new ParsingDetector(false));/** JChardetFacade封装了由Mozilla组织提供的JChardet,它可以完成大多数文件的编码* 测定。所以,一般有了这个探测器就可满足大多数项目的要求,如果你还不放心,可以* 再多加几个探测器,比如下面的ASCIIDetector、UnicodeDetector等。*/detector.add(JChardetFacade.getInstance());// 用到antlr.jar、chardet.jar// ASCIIDetector用于ASCII编码测定detector.add(ASCIIDetector.getInstance());// UnicodeDetector用于Unicode家族编码的测定detector.add(UnicodeDetector.getInstance());java.nio.charset.Charset charset = null;File f = new File(path);try {charset = detector.detectCodepage(f.toURI().toURL());} catch (Exception ex) {ex.printStackTrace();}if (charset != null)return charset.name();elsereturn null;}String charsetName = getFileEncode(configFilePath);System.out.println(charsetName);inputStream = new FileInputStream(configFile);BufferedReader in = new BufferedReader(new InputStreamReader(inputStream, charsetName)); 读jar包内部资源文件(先利用cpdetector检测jar内部的资源文件的编码格式,然后以检测到的编码方式去读文件):/*** 利用第三方开源包cpdetector获取URL对应的文件编码** @param path* 要判断文件编码格式的源文件的URL* @author huanglei* @version 2012-7-12 14:05*/public static String getFileEncode(URL url) {/** detector是探测器,它把探测任务交给具体的探测实现类的实例完成。* cpDetector内置了一些常用的探测实现类,这些探测实现类的实例可以通过add方法 加进来,如ParsingDetector、* JChardetFacade、ASCIIDetector、UnicodeDetector。* detector按照“谁最先返回非空的探测结果,就以该结果为准”的原则返回探测到的* 字符集编码。使用需要用到三个第三方JAR包:antlr.jar、chardet.jar和cpdetector.jar* cpDetector是基于统计学原理的,不保证完全正确。*/CodepageDetectorProxy detector = CodepageDetectorProxy.getInstance();/** ParsingDetector可用于检查HTML、XML等文件或字符流的编码,构造方法中的参数用于* 指示是否显示探测过程的详细信息,为false不显示。*/detector.add(new ParsingDetector(false));/** JChardetFacade封装了由Mozilla组织提供的JChardet,它可以完成大多数文件的编码* 测定。所以,一般有了这个探测器就可满足大多数项目的要求,如果你还不放心,可以* 再多加几个探测器,比如下面的ASCIIDetector、UnicodeDetector等。*/detector.add(JChardetFacade.getInstance());// 用到antlr.jar、chardet.jar// ASCIIDetector用于ASCII编码测定detector.add(ASCIIDetector.getInstance());// UnicodeDetector用于Unicode家族编码的测定detector.add(UnicodeDetector.getInstance());java.nio.charset.Charset charset = null;try {charset = detector.detectCodepage(url);} catch (Exception ex) {ex.printStackTrace();}if (charset != null)return charset.name();elsereturn null;}URL url = CreateStationTreeModel.class.getResource("/resource/" + "配置文件");URLConnection urlConnection = url.openConnection();inputStream=urlConnection.getInputStream();String charsetName = getFileEncode(url);System.out.println(charsetName);BufferedReader in = new BufferedReader(new InputStreamReader(inputStream, charsetName)); 3:探测任意输入的文本流的编码,方法是调用其重载形式:charset=detector.detectCodepage(待测的文本输入流,测量该流所需的读入字节数); 上面的字节数由程序员指定,字节数越多,判定越准确,当然时间也花得越长。要注意,字节数的指定不能超过文本流的最大长度。4:判定文件编码的具体应用举例:属性文件(.properties)是Java程序中的常用文本存储方式,象STRUTS框架就是利用属性文件存储程序中的字符串资源。它的内容如下所示:#注释语句属性名=属性值读入属性文件的一般方法是:FileInputStream ios=new FileInputStream(“属性文件名”);Properties prop=new Properties();prop.load(ios);String value=prop.getProperty(“属性名”);ios.close();利用java.io.Properties的load方法读入属性文件虽然方便,但如果属性文件中有中文,在读入之后就会发现出现乱码现象。发生这个原因是load方法使用字节流读入文本,在读入后需要将字节流编码成为字符串,而它使用的编码是“iso-8859-1”,这个字符集是ASCII码字符集,不支持中文编码,方法一:使用显式的转码:String value=prop.getProperty(“属性名”);String encValue=new String(value.getBytes(“iso-8859-1″),”属性文件的实际编码”);方法二:象这种属性文件是项目内部的,我们可以控制属性文件的编码格式,比如约定采用Windows内定的GBK,就直接利用”gbk”来转码, 如果约定采用UTF-8,就使用”UTF-8″直接转码。方法三:如果想灵活一些,做到自动探测编码,就可利用上面介绍的方法测定属性文件的编码,从而方便开发人员的工作补充:可以用下面代码获得Java支持编码集合:Charset.availableCharsets().keySet();可以用下面的代码获得系统默认编码:Charset.defaultCharset();

收藏java 如何判断txt的编码字符集

简单判断是UTF-8或不是UTF-8,因为一般除了UTF-8之外就是GBK,所以就设置默认为GBK。按照给定的字符集存储文件时,在文件的最开头的三个字节中就有可能存储着编码信息,所以,基本的原理就是只要读出文件前三个字节,判定这些字节的值,就可以得知其编码的格式。其实,如果项目运行的平台就是中文操作系统,如果这些文本文件在项目内产生,即开发人员可以控制文本的编码格式,只要判定两种常见的编码就可以了:GBK和UTF-8。由于中文Windows默认的编码是GBK,所以一般只要判定UTF-8编码格式。对于UTF-8编码格式的文本文件,其前3个字节的值就是-17、-69、-65,所以,判定是否是UTF-8编码格式的代码片段如下:[java] view plaincopyFile file = new File(path); InputStream in= new java.io.FileInputStream(file); byte[] b = new byte[3]; in.read(b); in.close(); if (b[0] == -17 && b[1] == -69 && b[2] == -65)System.out.println(file.getName() + ":编码为UTF-8"); elseSystem.out.println(file.getName() + ":可能是GBK,也可能是其他编码"); 2:若想实现更复杂的文件编码检测,可以使用一个开源项目cpdetector,它所在的网址是:http://cpdetector.sourceforge.net/。它的类库很小,只有500K左右,cpDetector是基于统计学原理的,不保证完全正确,利用该类库判定文本文件的代码如下:读外部文件(先利用cpdetector检测文件的编码格式,然后用检测到的编码方式去读文件):[java] view plaincopy/*** 利用第三方开源包cpdetector获取文件编码格式** @param path* 要判断文件编码格式的源文件的路径* @author huanglei* @version 2012-7-12 14:05*/ public static String getFileEncode(String path) {/** detector是探测器,它把探测任务交给具体的探测实现类的实例完成。* cpDetector内置了一些常用的探测实现类,这些探测实现类的实例可以通过add方法 加进来,如ParsingDetector、* JChardetFacade、ASCIIDetector、UnicodeDetector。* detector按照“谁最先返回非空的探测结果,就以该结果为准”的原则返回探测到的* 字符集编码。使用需要用到三个第三方JAR包:antlr.jar、chardet.jar和cpdetector.jar* cpDetector是基于统计学原理的,不保证完全正确。*/CodepageDetectorProxy detector = CodepageDetectorProxy.getInstance();/** ParsingDetector可用于检查HTML、XML等文件或字符流的编码,构造方法中的参数用于* 指示是否显示探测过程的详细信息,为false不显示。*/detector.add(new ParsingDetector(false));/*

java中使用InputStreamReader的getEncoding方法不能获取正确的结果

public final class CpdetectorUtil { private static final CodepageDetectorProxy detector = CodepageDetectorProxy .getInstance(); static { detector.add(new ParsingDetector(false)); detector.add(JChardetFacade.getInstance()); detector.add(UnicodeDetector.getInstance()); detector.add(ASCIIDetector.getInstance()); } private CpdetectorUtil() { } /** * * 感知文件编码方式。 * * @param 待探测文件 * @return 编码字符串,为空表示没有找到该编码 */ public static String perceiveCode(File file) { if (null == file || !file.exists()) { return null; } Charset charset = null; try { charset = detector.detectCodepage(file.toURI().toURL()); } catch (Exception ex) { Log.error(ex); } if (charset != null) { return charset.name(); } return null; }}需要三个jarcpdetector_1.0.10.jarchardet-1.0.jarantlr-2.7.4.jar希望能帮助你

java 怎么判断文本内容的编码

1、window——>preference2、General——>Workspace,右边【Textfileencoding】选择编码后,点击【OK】。

java 怎么判断文本内容的编码

1:简单判断是UTF-8或不是UTF-8,因为一般除了UTF-8之外就是GBK,所以就设置默认为GBK。按照给定的字符集存储文件时,在文件的最开头的三个字节中就有可能存储着编码信息,所以,基本的原理就是只要读出文件前三个字节,判定这些字节的值,就可以得知其编码的格式。其实,如果项目运行的平台就是中文操作系统,如果这些文本文件在项目内产生,即开发人员可以控制文本的编码格式,只要判定两种常见的编码就可以了:GBK和UTF-8。由于中文Windows默认的编码是GBK,所以一般只要判定UTF-8编码格式。对于UTF-8编码格式的文本文件,其前3个字节的值就是-17、-69、-65,所以,判定是否是UTF-8编码格式的代码片段如下:[java] view plaincopyFile file = new File(path); InputStream in= new java.io.FileInputStream(file); byte[] b = new byte[3]; in.read(b); in.close(); if (b[0] == -17 && b[1] == -69 && b[2] == -65)System.out.println(file.getName() + ":编码为UTF-8"); elseSystem.out.println(file.getName() + ":可能是GBK,也可能是其他编码"); 2:若想实现更复杂的文件编码检测,可以使用一个开源项目cpdetector,它所在的网址是:http://cpdetector.sourceforge.net/。它的类库很小,只有500K左右,cpDetector是基于统计学原理的,不保证完全正确,利用该类库判定文本文件的代码如下:读外部文件(先利用cpdetector检测文件的编码格式,然后用检测到的编码方式去读文件):[java] view plaincopy/*** 利用第三方开源包cpdetector获取文件编码格式** @param path* 要判断文件编码格式的源文件的路径* @author huanglei* @version 2012-7-12 14:05*/ public static String getFileEncode(String path) {/** detector是探测器,它把探测任务交给具体的探测实现类的实例完成。* cpDetector内置了一些常用的探测实现类,这些探测实现类的实例可以通过add方法 加进来,如ParsingDetector、* JChardetFacade、ASCIIDetector、UnicodeDetector。* detector按照“谁最先返回非空的探测结果,就以该结果为准”的原则返回探测到的* 字符集编码。使用需要用到三个第三方JAR包:antlr.jar、chardet.jar和cpdetector.jar* cpDetector是基于统计学原理的,不保证完全正确。*/CodepageDetectorProxy detector = CodepageDetectorProxy.getInstance();/** ParsingDetector可用于检查HTML、XML等文件或字符流的编码,构造方法中的参数用于* 指示是否显示探测过程的详细信息,为false不显示。*/detector.add(new ParsingDetector(false));/** JChardetFacade封装了由Mozilla组织提供的JChardet,它可以完成大多数文件的编码* 测定。所以,一般有了这个探测器就可满足大多数项目的要求,如果你还不放心,可以* 再多加几个探测器,比如下面的ASCIIDetector、UnicodeDetector等。*/detector.add(JChardetFacade.getInstance());// 用到antlr.jar、chardet.jar// ASCIIDetector用于ASCII编码测定detector.add(ASCIIDetector.getInstance());// UnicodeDetector用于Unicode家族编码的测定detector.add(UnicodeDetector.getInstance());java.nio.charset.Charset charset = null;File f = new File(path);try {charset = detector.detectCodepage(f.toURI().toURL());} catch (Exception ex) {ex.printStackTrace();}if (charset != null)return charset.name();elsereturn null; } [java] view plaincopyString charsetName = getFileEncode(configFilePath); System.out.println(charsetName); inputStream = new FileInputStream(configFile); BufferedReader in = new BufferedReader(new InputStreamReader(inputStream, charsetName)); 读jar包内部资源文件(先利用cpdetector检测jar内部的资源文件的编码格式,然后以检测到的编码方式去读文件):[java] view plaincopy/*** 利用第三方开源包cpdetector获取URL对应的文件编码** @param path* 要判断文件编码格式的源文件的URL* @author huanglei* @version 2012-7-12 14:05*/ public static String getFileEncode(URL url) {/** detector是探测器,它把探测任务交给具体的探测实现类的实例完成。* cpDetector内置了一些常用的探测实现类,这些探测实现类的实例可以通过add方法 加进来,如ParsingDetector、* JChardetFacade、ASCIIDetector、UnicodeDetector。* detector按照“谁最先返回非空的探测结果,就以该结果为准”的原则返回探测到的* 字符集编码。使用需要用到三个第三方JAR包:antlr.jar、chardet.jar和cpdetector.jar* cpDetector是基于统计学原理的,不保证完全正确。*/CodepageDetectorProxy detector = CodepageDetectorProxy.getInstance();/** ParsingDetector可用于检查HTML、XML等文件或字符流的编码,构造方法中的参数用于* 指示是否显示探测过程的详细信息,为false不显示。*/detector.add(new ParsingDetector(false));/** JChardetFacade封装了由Mozilla组织提供的JChardet,它可以完成大多数文件的编码* 测定。所以,一般有了这个探测器就可满足大多数项目的要求,如果你还不放心,可以* 再多加几个探测器,比如下面的ASCIIDetector、UnicodeDetector等。*/detector.add(JChardetFacade.getInstance());// 用到antlr.jar、chardet.jar// ASCIIDetector用于ASCII编码测定detector.add(ASCIIDetector.getInstance());// UnicodeDetector用于Unicode家族编码的测定detector.add(UnicodeDetector.getInstance());java.nio.charset.Charset charset = null;try {charset = detector.detectCodepage(url);} catch (Exception ex) {ex.printStackTrace();}if (charset != null)return charset.name();elsereturn null; } [java] view plaincopyURL url = CreateStationTreeModel.class.getResource("/resource/" + "配置文件"); URLConnection urlConnection = url.openConnection(); inputStream=urlConnection.getInputStream(); String charsetName = getFileEncode(url); System.out.println(charsetName); BufferedReader in = new BufferedReader(new InputStreamReader(inputStream, charsetName)); 3:探测任意输入的文本流的编码,方法是调用其重载形式: [java] view plaincopycharset=detector.detectCodepage(待测的文本输入流,测量该流所需的读入字节数); 上面的字节数由程序员指定,字节数越多,判定越准确,当然时间也花得越长。要注意,字节数的指定不能超过文本流的最大长度。4:判定文件编码的具体应用举例:属性文件(.properties)是Java程序中的常用文本存储方式,象STRUTS框架就是利用属性文件存储程序中的字符串资源。它的内容如下所示:#注释语句属性名=属性值读入属性文件的一般方法是:[java] view plaincopyFileInputStream ios=new FileInputStream(“属性文件名”); Properties prop=new Properties(); prop.load(ios); String value=prop.getProperty(“属性名”); ios.close();利用java.io.Properties的load方法读入属性文件虽然方便,但如果属性文件中有中文,在读入之后就会发现出现乱码现象。发生这个原因是load方法使用字节流读入文本,在读入后需要将字节流编码成为字符串,而它使用的编码是“iso-8859-1”,这个字符集是ASCII码字符集,不支持中文编码,方法一:使用显式的转码:[java] view plaincopyString value=prop.getProperty(“属性名”); String encValue=new String(value.getBytes(“iso-8859-1″),”属性文件的实际编码”);方法二:象这种属性文件是项目内部的,我们可以控制属性文件的编码格式,比如约定采用Windows内定的GBK,就直接利用”gbk”来转码, 如果约定采用UTF-8,就使用”UTF-8″直接转码。方法三:如果想灵活一些,做到自动探测编码,就可利用上面介绍的方法测定属性文件的编码,从而方便开发人员的工作补充:可以用下面代码获得Java支持编码集合:Charset.availableCharsets().keySet();可以用下面的代码获得系统默认编码:Charset.defaultCharset();

Java 如何判断text是不是超文本内容

: Java 指的是一种完全面向对象的程序设计语言 HTML才是超文本标记语言

怎么使用java判断一个字符串是属于什么编码?

你这悬赏分数好高....好羡慕 真是土豪.....一楼 二楼的答案都不错~~~~你就凑合这也采纳一下我的吧!!!人间大爱啊。。。施主谢过了

用java写一个图书管理系统,登陆界面运行后提示错误,请问这是什么意思?

代码太乱,好像有空对象

java怎么在按钮上加图片,或者把图片做成按钮(按钮是圆的

<button ><image src=""></button>这样就可以在按钮上加图片了。

关于javacript的小问题

1.javascript是大小写敏感的2.形参当然可以随便改,但你也得改函数体里面的啊例如:-------------------------------------function echo(a){ alert(a);}如果你把a改成b了,你就得改成function echo(b){ alert(b);}-------------------------------------3.thisImage.overImage = new Image();这段代码建立了一个Image对象啊

求 RED HOT JAM 系列。。。。最好是迅雷的。。我给大大的分~~谢谢

我只看过一点,现在早就不看了,另外绝无全集,那要到日本去买

red hot jam 迅雷种子

求大神分享Red Hot Jam Vol.135 Maho Sawai 沢井真帆高清完整版下载,跪谢

Red Hot Jam Vol.135 Maho Sawai 沢井真帆高清完整版下载地址:核实后记得采纳!!

red hot jam是什么意思?

赤热的果酱

RED HOT JAM是什么意思?

特色是均为无码片
 首页 上一页  39 40 41 42 43 44 45 46 47 48 49  下一页  尾页