The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages

java.nio


Byte Buffers
e158. Creating a ByteBuffer
e159. Getting Bytes from a ByteBuffer
e160. Putting Bytes into a ByteBuffer
e161. Converting Between a ByteBuffer an a Byte Array
e162. Getting and Setting Non-Byte Java Types in a ByteBuffer
e163. Creating a Non-Byte Java Type Buffer on a ByteBuffer
e164. Using a ByteBuffer to Store Strings
e165. Setting the Byte Ordering for a ByteBuffer

Files
e166. Creating a Memory-Mapped File
e167. Persisting Changes to a Memory-Mapped ByteBuffer
e168. Determining If a ByteBuffer Is Direct
e169. Reading from a Channel with a ByteBuffer
e170. Writing to a Channel with a ByteBuffer
e171. Writing and Appending a ByteBuffer to a File
e172. Copying One File to Another

Sockets
e173. Creating a Non-Blocking Socket
e174. Reading from a SocketChannel
e175. Writing to a SocketChannel
e176. Using a Selector to Manage Non-Blocking Sockets
e177. Creating a Non-Blocking Server Socket
e178. Accepting a Connection on a ServerSocketChannel
e179. Using a Selector to Manage Non-Blocking Server Sockets
e180. Detecting When a Non-Blocking Socket Is Closed by the Remote Host

File Locking
e181. Creating a File Lock on a File
e182. Creating a Shared File Lock on a File

Streams
e183. Creating a Stream from a Channel
e184. Creating a Stream on a ByteBuffer

© 2002 Addison-Wesley.