原创 SUMMARY OF STRUCTURAL PATTERNS
The Adapter pattern , used to change the interface of one class to that of another one. The Bridge pattern , intended t
原创 文件轉換爲字節數組
/** * 文件轉化爲字節數組 * * @param file * @return */ public static byte[] getBytesFromFile(File f
原创 j2me上傳文件的問題
客戶端: sc = (HttpConnection)Connector.open( url, Connector.READ_WRITE, true ); sc.setRequestMethod( HttpConnection.POST )
原创 Decorator
In object-oriented programming, the decorator pattern is a design pattern that allows new/additional behaviour to be
原创 J2ME中的文件讀寫問題
理論 [file:///] 或者 [file://localhost/] 表示模擬器的根目錄地址 WTK2.5.1根目錄爲C:/Documents and Settings/Administrator/j2mewtk/2.5.2/app
原创 Flyweight
The term comes from the boxing weight class with the same name. Often some parts of the object state can be shared and
原创 Facade
The facade pattern is a software engineering design pattern commonly used with Object-oriented programming. A facade i
原创 Proxy
The Proxy pattern is used when you need to represent a complex object by a simpler one. If creating an object is expen
原创 Command
The command pattern is a design pattern in which an object is used to represent and encapsulate all the information
原创 Composite
In computer science, the composite pattern is a partitioning design pattern. Composite allows a group of objects to be
原创 J2ME 文件上傳 實例(FileConnector鏈接文件系統,非RMS)
客戶端: import java.io.InputStream; import java.io.OutputStream; import java.io.ByteArrayOutputStream; import javax.microe
原创 J2ME版HttpConnect
import java.io.DataInputStream; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateCh
原创 gang of four resources
Download: The 'gang of four' patterns in LePUS3 (Visio 2003 format) The 'gang of four' patterns in UML (Visio 2003 for
原创 Java調試斷點不起作用的解決辦法
eclipse中 window->preference->debug->Debugger timeout 設大一點
原创 J2ME工程中.jad問題
工程名必須與jad文件名一致