Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÖÐѹËõÓë½âѹ ÖÐÎÄÎļþÃûÂÒÂë½â¾ö°ì·¨

http://xxw8393.blog.163.com/blog/static/37256834200993051226320/
java¶Ôì¶ÎÄ×ֵıàÂëÊÇÒÔ unicodeΪ»ù´¡£¬Òò´Ë£¬ÈôÊÇÒÔZipInputStream¼°ZipOutputStreamÀ´´¦ÀíѹËõ¼°½âѹËõµÄ¹¤×÷£¬Åöµ½ÖÐÎĵµÃû»ò·¾¶£¬Äǵ±È»ÊÇÒÔunicodeÀ´´¦ÀíÂÞ£¡µ«ÊÇ£¬ÏÖÔÚÊÐÃæÉϵÄѹËõ¼°½âѹËõÈíÌ壬ÀýÈçwinzip£¬È´ÊDz»Ö§Ô®unicodeµÄ£¬Ò»Åöµ½µµÃûÒÔunicode±àÂëµÄµµ°¸£¬Ëü¾Í²»´¦Àí¡£ÄÇÒªÈçºÎ²ÅÄÜ×ö³öÈÃWinRarÄܹ»´¦ÀíµÄѹËõµµÄØ£¿ÄǾ͵ôÓÐÞ¸ÄZipInputStream¼°ZipOutputStream¶Ôì¶µµÃûµÄ±àÂ뷽ʽÀ´×ÅÊÖÁË¡£ÎÒÃÇ¿ÉÒÔ´ÓjdkµÄsrc.zipÈ¡µÃZipInputStream¼°ZipOutputStreamµÄԭʼÂëÀ´¼ÓÒÔÐÞ¸Ä
Ò»¡¢ZipOutputStream.java
1.´ÓjdkµÄsrc.zipÈ¡µÃZipOutputStream.javaԭʼÂ룬Áí´æµ½Ò»¸öÐÂÎļþÖУ¬µµÃû¸ÄΪCnZipOutputStream.java¡£
2.¿ªÊ¼ÐÞ¸ÄԭʼÂ룬½«classÃû³Æ¸ÄΪCnZipOutputStream
3.½¨¹¹Ê½Ò²±ØÐë¸ü¸ÄΪCnZipOutputStream
4.ÐÂÔömember£¬Õâ¸ömember¼Ç¼±àÂ뷽ʽ
  private String encoding="UTF-8";
5.ÔÙÐÂÔöÒ»¸ö½¨¹¹Ê½(Õâ¸ö½¨¹¹Ê½¿ÉÒÔÈÃÕâ¸öclassÔÚnewµÄʱºò£¬É趨µµÃûµÄ±àÂë)
  public CZipOutputStream(OutputStream out,String encoding) {
     this(out);
     this.encoding=encoding;
  }
6.ÕÒµ½byte[] nameBytes = getUTF8Bytes(e.name);(Óжþ¸öµØ·½)£¬½«ËüÐÞ¸ÄÈçÏ£º
byte[] nameBytes = null;
 try
 {
 if (this.encoding.toUpperCase().equals("UTF-8"))
 nameBytes =getUTF8Bytes(e.name);
 else
 nameBytes= e.name.getBytes(this.encoding);
 }
 catch(Exception byteE)
 {
 nameBytes=getUTF8Bytes(e.name);
 }
¶þ¡¢ZipInputStream.java
1.´ÓjdkµÄsrc.zipÈ¡µÃZipInputStream.javaԭʼÂ룬Áí´æµ½Ò»¸öÐÂÎļþÖУ¬µµÃû¸ÄΪCnZipInputStream.java¡£
2.¿ªÊ¼ÐÞ¸ÄԭʼÂ룬½«classÃû³Æ¸ÄΪCnZipInputStream
3.½¨¹¹Ê½Ò²±ØÐë¸ü¸ÄΪCnZipInputStream
4.ÐÂÔömember£¬Õâ¸ömember¼Ç¼±àÂ뷽ʽ
  private String encoding="UTF-8";
5.ÔÙÐÂÔöÒ»¸ö½¨¹¹Ê½ÈçÏÂ(Õâ¸ö½¨¹¹Ê½¿ÉÒÔÈÃÕâ¸öclassÔÚnewµÄʱºò£¬É趨µµÃûµÄ±àÂë)
public CZipInputStream(InputStream in,String encoding) {
  this(in);
  this.encoding=encoding;
}
6.ÕÒµ½ZipEntry e = createZipEntry(getUTF8String(b, 0, len));ÕâÒ»ÐУ¬½«


Ïà¹ØÎĵµ£º

IBM FileNet Content Java API ¼ò½é

2008 Äê 6 ÔÂ 24 ÈÕ
Ô­ÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄî£¬ËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......

javaÖÐÈçºÎʹÓÃamcharts


×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......

java ¾²Ì¬´úÂë¿é

                      £¨Ò»£©java ¾²Ì¬´úÂë¿é ¾²Ì¬·½·¨Çø±ð
Ò»°ãÇé¿öÏÂ,Èç¹ûÓÐЩ´úÂë±ØÐëÔÚÏîÄ¿Æô¶¯µÄʱºò¾ÍÖ´ÐеÄʱºò,ÐèҪʹÓþ²Ì¬´úÂë¿é,ÕâÖÖ´úÂëÊÇÖ÷¶¯Ö´ÐеÄ;ÐèÒªÔÚÏîÄ¿Æô¶¯µÄʱºò¾Í³õʼ»¯,ÔÚ²»´´½¨¶ÔÏ ......

Javaµ÷ÓÃSybase´æ´¢¹ý³Ì

ÕªÖÁSybase¹ÙÍø:
The caller( ) method calls the stored procedure inoutproc:
create proc inoutproc @id int, @newname varchar(50), @newhome Address,
@oldname varchar(50) output, @oldhome Address output as

select @oldname = name, @oldhome = home from xmp where id=@id
update xmp set name ......

¡¾×ª¡¿JavaÖеÄλÔËËã·û

¡¾×ª¡¿JavaÖеÄλÔËËã·û
Ô­×÷ÕߣºRosen Jiang ³ö´¦£ºhttp://www.blogjava.net/rosen
ÒÆÎ»ÔËËã·û
    °üÀ¨£º
    “>> ÓÒÒÆ”£»“<< ×óÒÆ”£»“>>> ÎÞ·ûºÅÓÒÒÆ”
Àý×Ó£º
-5>>3=-1
1111 1111 1111 1111 1111 1111 1111 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ