Java NIO
Many serious Java programmers, especially enterprise Java programmers, consider the new I/O API--called NIO for New Input/Output--the most important feature in the 1.4 version of the Java 2 Standard Edition. The NIO package includes many things that have been missing from previous editions of Java...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, California :
O'Reilly
2002.
|
Edición: | First edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627333806719 |
Tabla de Contenidos:
- Table of Contents; Preface; Organization; Who Should Read This Book; Software and Versions; Conventions Used in This Book; Font Conventions; How to Contact Us; Acknowledgments; Chapter 1. Introduction; I/O Versus CPU Time; No Longer CPU Bound; Getting to the Good Stuff; I/O Concepts; Buffer Handling; Scatter/gather; Virtual Memory; Memory Paging; File I/O; Memory-mapped files; File locking; Stream I/O; Summary; Chapter 2. Buffers; Buffer Basics; Attributes; Buffer API; Accessing; Filling; Flipping; Draining; Compacting; Marking; Comparing; Bulk Moves; Creating Buffers; Duplicating Buffers
- Byte BuffersByte Ordering; Direct Buffers; View Buffers; Data Element Views; Accessing Unsigned Data; Memory-Mapped Buffers; Summary; Chapter 3. Channels; Channel Basics; Opening Channels; Using Channels; Closing Channels; Scatter/Gather; File Channels; Accessing Files; File Locking; Memory-Mapped Files; Channel-to-Channel Transfers; Socket Channels; Nonblocking Mode; ServerSocketChannel; SocketChannel; DatagramChannel; Pipes; The Channels Utility Class; Summary; Chapter 4. Selectors; Selector Basics; The Selector, SelectableChannel, and SelectionKey Classes; Setting Up Selectors
- Using Selection KeysUsing Selectors; The Selection Process; Stopping the Selection Process; Managing Selection Keys; Concurrency; Asynchronous Closability; Selection Scaling; Summary; Chapter 5. Regular Expressions; Regular Expression Basics; The Java Regular Expression API; The CharSequence Interface; The Pattern Class; Splitting strings with the Pattern class; The Matcher Class; Regular Expression Methods of the String Class; Java Regular Expression Syntax; An Object-Oriented File Grep; Summary; Chapter 6. Character Sets; Character Set Basics; Charsets; The Charset Class; Comparing Charsets
- Charset EncodersThe CoderResult class; Charset Decoders; The Charset Service Provider Interface; Creating Custom Charsets; Providing Your Custom Charsets; Summary; Appendix A. NIO and the JNI; Appendix B. Selectable Channels SPI; Appendix C. NIO Quick Reference; Package java.nio; Buffer; BufferOverflowException; BufferUnderflowException; ByteBuffer; ByteOrder; CharBuffer; DoubleBuffer; FloatBuffer; IntBuffer; InvalidMarkException; LongBuffer; MappedByteBuffer; ReadOnlyBufferException; ShortBuffer; Package java.nio.channels; AlreadyConnectedException; AsynchronousCloseException; ByteChannel
- CancelledKeyExceptionChannel; Channels; ClosedByInterruptException; ClosedChannelException; ClosedSelectorException; ConnectionPendingException; DatagramChannel; FileChannel; FileLock; FileLockInterruptionException; GatheringByteChannel; IllegalBlockingModeException; IllegalSelectorException; InterruptibleChannel; NoConnectionPendingException; NonReadableChannelException; NonWritableChannelException; NotYetBoundException; NotYetConnectedException; OverlappingFileLockException; Pipe; ReadableByteChannel; ScatteringByteChannel; SelectableChannel; SelectionKey; Selector; ServerSocketChannel
- SocketChannel