JavApi以类似JavaAPI的形式提供一组.NET的工具类。
下面是一些示例代码:
SampleGZIPOutputStream2File.cs:GZipafilecontentintootherfile. (Examplefor:FileInputStream,FileOutputStream,GZIPOutputStream)SampleTextFileOutputStream.cs:Writetextorbinariestofile. (Examplefor:FileOutputStream)SampleGetRuntimeInformations.cs:Readsysteminformation. (Examplefor:SystemJ)SampleSendPlainMail.cs:Sendasimpletextemail. (Examplefor:javax.mail)SampleCreateNewProcess.cs:Createanewprocess. (Examplefor:java.lang.Runtime)SampleSimpleHttpServer.cs:Createasimplemultithreadedserver. (Examplefor:Thread,Runnable,Socket,ServerSocket)SampleUsingChecksumClasses.cs: Usingchecksumclasses. (Examplefor:Adler32,CRC32)SampleUsingCollection.cs:Usingcollectionclasses.(ExampleforArrayList,Iterator,foreach,for)
评论