JavApi.NET的工具类库
JavApi 以类似 Java API 的形式提供一组 .NET 的工具类。
下面是一些示例代码:
- SampleGZIPOutputStream2File.cs: GZip a file content into other file. (Example for: FileInputStream, FileOutputStream, GZIPOutputStream)
- SampleTextFileOutputStream.cs: Write text or binaries to file. (Example for: FileOutputStream)
- SampleGetRuntimeInformations.cs: Read system information. (Example for: SystemJ)
- SampleSendPlainMail.cs: Send a simple text email. (Example for: javax.mail)
- SampleCreateNewProcess.cs: Create a new process. (Example for: java.lang.Runtime)
- SampleSimpleHttpServer.cs: Create a simple multi threaded server. (Example for: Thread, Runnable, Socket, ServerSocket)
- SampleUsingChecksumClasses.cs: Using checksum classes. (Example for: Adler32, CRC32)
- SampleUsingCollection.cs: Using collection classes. (Example for ArrayList, Iterator, foreach, for)
评论