加载中
11, DatagramChanne

11, DatagramChannel: http://tutorials.jenkov.com/java-nio/datagram-channel.html A Java NIO DatagramChannel is a channel that can send and receive UDP packets. Since UDP is a c...

2015/01/28 19:30
5
10,Java NIO SeverSocketChannel

11,DatagramChannel; 12,Pipe ; 13, NIO vs IO

2015/01/27 17:14
30
9, Java NIO SocketChannel

A Java NIO SocketChannel is a channel that is connected to a TCP network socket. It is Java NIO's equivalent of Java Networking's Sockets. There are two ways a SocketChannel can...

2015/01/27 17:07
13
8,Java NIO FileChannel

A Java NIO FileChannel is a channel that is connected to a file. Using a file channel you can read data from a file, and write data to a file. The Java NIO FileChannel class is ...

2015/01/27 17:01
8
7,Java NIO Selector

A Selector is a Java NIO component which can examine one or more NIO Channel's, and determine which channels are ready for e.g. reading or writing. This way a single thread can ...

2015/01/27 16:59
11
6, Java NIO Channel to Channel Transfers

In Java NIO you can transfer data directly from one channel to another, if one of the channels is a FileChannel. The FileChannel class has a transferTo() and a transferFrom() me...

2015/01/27 16:41
11
5, Java NIO Scatter / Gather

Java NIO comes with built-in scatter / gather support. Scatter / gather are concepts used in reading from, and writing to channels. A scattering read from a channel is a read op...

2015/01/27 16:39
19
4, Java NIO Buffer

Java NIO Buffers are used when interacting with NIO Channels. As you know, data is read from channels into buffers, and written from buffers into channels. A buffer is essential...

2015/01/27 16:12
10
3,Java NIO Channel

Java NIO Channels are similar to streams with a few differences: You can both read and write to a Channels. Streams are typically one-way (read or write). Channels can be read a...

2015/01/27 16:01
5
2,Java NIO Overview

Java NIO consist of the following core components: Channels Buffers Selectors Java NIO has more classes and components than these, but the Channel, Buffer and Selector forms the...

2015/01/27 15:52
13
1,Java NIO Tutorial

Java NIO (New IO) is an alternative IO API for Java (from Java 1.4), meaning alternative to the standard Java IO andJava Networking API's. Java NIO offers a different way of wor...

2015/01/27 15:44
13
Class 、ClassLoader 加载资源

通过默认的ClassLoader加载类或资源文件,依赖于系统属性java.class.path 指定的路径; 加载本地库依赖于 java.library.path 指定的路径;可以参考 System的 getProperties 方法...

2015/01/22 17:35
20
java.lang.Runtime

Runtime是java application与系统的接口, 可以启动单独的进程执行外部命令; 监控方法甚至指令的执行; 加载动态库(依赖于ClassLoader); 可以报告、控制java app的状态(内存使用、暂停、...

2015/01/22 16:06
23
java.lang.System

System的功能依赖于java.lang.Runtime

2015/01/22 15:44
13
Mac OS X中的JNI调用和实现

在Mac OS X中,JNI的操作方法与网上给出的Linux中的使用方法略有小小差异。突然之间发现,在此记之。 网上给出的在Windows和Linux操作系统下的JNI编程教程很多,其实无论在哪个系统中都是相似...

2015/01/21 11:18
73
java.nio

特性: 1,字符集编码器和解码器 2,非阻塞的IO 3,内存映射文件 4,文件加锁机制 内存映射相关: 虚拟内存机制的利用, 文件通道(channel),通道是用于磁盘文件的一种抽象,它使我们可以访...

2015/01/15 16:54
33
UML中的六大关系

UML定义的关系主要有六种:依赖、类属、关联、实现、聚合和组合。这些类间关系的理解和使用是掌握和应用UML的关键,而也就是这几种关系,往往会让初学者迷惑。这里给出这六种主要UML关系的说...

2015/01/14 15:34
11
java.io 相关tips

tip 0, 读到文件(或流)结尾的标志 java.io.InputStream 中有个关键方法: int read(), 它从流中读取一个字节,并将该字节返回; 如果到达流末尾,则返回 -1 . 那么问题是, 如果流中正好有...

2015/01/14 13:49
29
Mac OS 上设置 JAVA_HOME

先看一张图: may@MaydeMacBook-Pro /System/Library/Frameworks/JavaVM.framework $  ls -al total 64 drwxr-xr-x   12 root  wheel   408 12  3 19:42 . drwxr-xr-x ...

2015/01/06 11:02
28
java 中类加载过程

一, 虚拟机的类加载过程 类加载:虚拟机把描述类的数据从 .class文件加载到内存,并对数据进行校验,转换解析和初始化,最终形成可以被直接使用的java类型,这就是虚拟机的类加载机制。 类的...

2014/12/31 14:08
21

没有更多内容

加载失败,请刷新页面

返回顶部
顶部