Java Reference
In-Depth Information
Available Character Set Count: 160
Big5
ISO-8859-1
US-ASCII
UTF-16
UTF-16BE
UTF-16LE
UTF-32
UTF-32BE
UTF-32LE
UTF-8
windows-1250
x-iso-8859-11
...
Channels
A channel is an open connection between a data source/data sink and a Java program to perform some I/O
operations. The Channel interface is in the java.nio.channels package. It is used as a base to implement channels
in Java. It declares only two methods: close() and isOpen() . When a channel is created, it is open and its isOpen()
method returns true . Once you are finished using a channel, you should call its close() method to close it. At that
point, isOpen() returns false. Figure 9-15 depicts the class diagram for the Channel interface.
Figure 9-15. A class diagram for the channel interface
 
Search WWH ::




Custom Search