Book description
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 that are critical to writing high-performance, large-scale applications: improvements in the areas of buffer management, scalable network and file I/O, character-set support, and regular expression matching. Most of all, it boosts performance and speed dramatically.Java NIO explores the new I/O capabilities of version 1.4 in detail and shows you how to put these features to work to greatly improve the efficiency of the Java code you write. This compact volume examines the typical challenges that Java programmers face with I/O and shows you how to take advantage of the capabilities of the new I/O features. You?ll learn how to put these tools to work using examples of common, real-world I/O problems and see how the new features have a direct impact on responsiveness, scalability, and reliability. The book includes:
- A rundown of the new features in NIO
- Basic and advanced I/O Concepts
- Binary I/O and the new buffer classes
- Memory mapped files and file locking
- Character I/O: encoding, decoding and transforming character data
- Regular Expressions and the new java.util.regex package
- Muliplexing with java.nio
Publisher resources
Table of contents
- Dedication
- Preface
- 1. Introduction
- 2. Buffers
- 3. Channels
- 4. Selectors
- 5. Regular Expressions
- 6. Character Sets
- A. NIO and the JNI
- B. Selectable Channels SPI
-
C. NIO Quick Reference
-
C.1. Package java.nio
- C.1.1. Buffer
- C.1.2. BufferOverflowException
- C.1.3. BufferUnderflowException
- C.1.4. ByteBuffer
- C.1.5. ByteOrder
- C.1.6. CharBuffer
- C.1.7. DoubleBuffer
- C.1.8. FloatBuffer
- C.1.9. IntBuffer
- C.1.10. InvalidMarkException
- C.1.11. LongBuffer
- C.1.12. MappedByteBuffer
- C.1.13. ReadOnlyBufferException
- C.1.14. ShortBuffer
-
C.2. Package java.nio.channels
- C.2.1. AlreadyConnectedException
- C.2.2. AsynchronousCloseException
- C.2.3. ByteChannel
- C.2.4. CancelledKeyException
- C.2.5. Channel
- C.2.6. Channels
- C.2.7. ClosedByInterruptException
- C.2.8. ClosedChannelException
- C.2.9. ClosedSelectorException
- C.2.10. ConnectionPendingException
- C.2.11. DatagramChannel
- C.2.12. FileChannel
- C.2.13. FileLock
- C.2.14. FileLockInterruptionException
- C.2.15. GatheringByteChannel
- C.2.16. IllegalBlockingModeException
- C.2.17. IllegalSelectorException
- C.2.18. InterruptibleChannel
- C.2.19. NoConnectionPendingException
- C.2.20. NonReadableChannelException
- C.2.21. NonWritableChannelException
- C.2.22. NotYetBoundException
- C.2.23. NotYetConnectedException
- C.2.24. OverlappingFileLockException
- C.2.25. Pipe
- C.2.26. ReadableByteChannel
- C.2.27. ScatteringByteChannel
- C.2.28. SelectableChannel
- C.2.29. SelectionKey
- C.2.30. Selector
- C.2.31. ServerSocketChannel
- C.2.32. SocketChannel
- C.2.33. UnresolvedAddressException
- C.2.34. UnsupportedAddressTypeException
- C.2.35. WritableByteChannel
- C.3. Package java.nio.channels.spi
-
C.4. Package java.nio.charset
- C.4.1. CharacterCodingException
- C.4.2. Charset
- C.4.3. CharsetDecoder
- C.4.4. CharsetEncoder
- C.4.5. CoderMalfunctionError
- C.4.6. CoderResult
- C.4.7. CodingErrorAction
- C.4.8. IllegalCharsetNameException
- C.4.9. MalformedInputException
- C.4.10. UnmappableCharacterException
- C.4.11. UnsupportedCharsetException
- C.5. Package java.nio.charset.spi
- C.6. Package java.util.regex
-
C.1. Package java.nio
- Index
- Colophon
- Copyright
Product information
- Title: Java NIO
- Author(s):
- Release date: August 2009
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596002886
You might also like
book
Java I/O, NIO and NIO.2
Java I/O, NIO, and NIO.2 is a power-packed book that accelerates your mastery of Java's various …
book
Java I/O
All of Java's Input/Output (I/O) facilities are based on streams, which provide simple ways to read …
book
Java I/O, 2nd Edition
All of Java's Input/Output (I/O) facilities are based on streams, which provide simple ways to read …
book
Java Web Services: Up and Running, 2nd Edition
Learn how to develop REST-style and SOAP-based web services and clients with this quick and thorough …