Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Java in a Nutshell, 5th Edition
A Note Regarding Supplemental Files
Preface
Changes in the Fifth Edition
Contents of This Book
Related Books
Examples Online
Conventions Used in This Book
Request for Comments
How the Quick Reference Is Generated
Acknowledgments
I. Introducing Java
1. Introduction
1.1. What Is Java?
1.1.1. The Java Programming Language
1.1.2. The Java Virtual Machine
1.1.3. The Java Platform
1.1.4. Versions of Java
1.2. Key Benefits of Java
1.2.1. Write Once, Run Anywhere
1.2.2. Security
1.2.3. Network-Centric Programming
1.2.4. Dynamic, Extensible Programs
1.2.5. Internationalization
1.2.6. Performance
1.2.7. Programmer Efficiency and Time-to-Market
1.3. An Example Program
1.3.1. Compiling and Running the Program
1.3.2. Analyzing the Program
1.3.2.1. Comments
1.3.2.2. Defining a class
1.3.2.3. Defining a method
1.3.2.4. Declaring a variable and parsing input
1.3.2.5. Computing the result
1.3.2.6. Displaying output
1.3.2.7. The end of a method
1.3.2.8. Blank lines
1.3.2.9. Another method
1.3.2.10. Checking for valid input
1.3.2.11. An important variable
1.3.2.12. Looping and computing the factorial
1.3.2.13. Returning the result
1.3.3. Exceptions
2. Java Syntax from the Ground Up
2.1. Java Programs from the Top Down
2.2. Lexical Structure
2.2.1. The Unicode Character Set
2.2.2. Case-Sensitivity and Whitespace
2.2.3. Comments
2.2.4. Reserved Words
2.2.5. Identifiers
2.2.6. Literals
2.2.7. Punctuation
2.3. Primitive Data Types
2.3.1. The boolean Type
2.3.2. The char Type
2.3.3. Strings
2.3.4. Integer Types
2.3.5. Floating-Point Types
2.3.6. Primitive Type Conversions
2.4. Expressions and Operators
2.4.1. Operator Summary
2.4.1.1. Precedence
2.4.1.2. Associativity
2.4.1.3. Operand number and type
2.4.1.4. Return type
2.4.1.5. Side effects
2.4.1.6. Order of evaluation
2.4.2. Arithmetic Operators
2.4.3. String Concatenation Operator
2.4.4. Increment and Decrement Operators
2.4.5. Comparison Operators
2.4.6. Boolean Operators
2.4.7. Bitwise and Shift Operators
2.4.8. Assignment Operators
2.4.9. The Conditional Operator
2.4.10. The instanceof Operator
2.4.11. Special Operators
2.5. Statements
2.5.1. Expression Statements
2.5.2. Compound Statements
2.5.3. The Empty Statement
2.5.4. Labeled Statements
2.5.5. Local Variable Declaration Statements
2.5.6. The if/else Statement
2.5.6.1. The else if clause
2.5.7. The switch Statement
2.5.8. The while Statement
2.5.9. The do Statement
2.5.10. The for Statement
2.5.11. The for/in Statement
2.5.11.1. Iterable and iterator
2.5.11.2. What for/in cannot do
2.5.12. The break Statement
2.5.13. The continue Statement
2.5.14. The return Statement
2.5.15. The synchronized Statement
2.5.16. The throw Statement
2.5.16.1. Exception types
2.5.17. The try/catch/finally Statement
2.5.17.1. try
2.5.17.2. catch
2.5.17.3. finally
2.5.18. The assert Statement
2.5.18.1. Compiling assertions
2.5.18.2. Enabling assertions
2.5.18.3. Using assertions
2.6. Methods
2.6.1. Defining Methods
2.6.2. Method Modifiers
2.6.3. Declaring Checked Exceptions
2.6.4. Variable-Length Argument Lists
2.6.5. Covariant Return Types
2.7. Classes and Objects Introduced
2.7.1. Defining a Class
2.7.2. Creating an Object
2.7.3. Using an Object
2.7.4. Object Literals
2.7.4.1. String literals
2.7.4.2. Type literals
2.7.4.3. The null reference
2.8. Arrays
2.8.1. Array Types
2.8.1.1. Array type widening conversions
2.8.1.2. C compatibility syntax
2.8.2. Creating and Initializing Arrays
2.8.2.1. Array initializers
2.8.3. Using Arrays
2.8.3.1. Accessing array elements
2.8.3.2. Array bounds
2.8.3.3. Iterating arrays
2.8.3.4. Copying arrays
2.8.3.5. Array utilities
2.8.4. Multidimensional Arrays
2.9. Reference Types
2.9.1. Reference vs. Primitive Types
2.9.2. Copying Objects
2.9.3. Comparing Objects
2.9.4. Terminology: Pass by Value
2.9.5. Memory Allocation and Garbage Collection
2.9.6. Reference Type Conversions
2.9.7. Boxing and Unboxing Conversions
2.10. Packages and the Java Namespace
2.10.1. Package Declaration
2.10.2. Globally Unique Package Names
2.10.3. Importing Types
2.10.3.1. Naming conflicts and shadowing
2.10.4. Importing Static Members
2.10.4.1. Static member imports and overloaded methods
2.11. Java File Structure
2.12. Defining and Running Java Programs
2.13. Differences Between C and Java
3. Object-Oriented Programming in Java
3.1. Class Definition Syntax
3.2. Fields and Methods
3.2.1. Field Declaration Syntax
3.2.2. Class Fields
3.2.3. Class Methods
3.2.4. Instance Fields
3.2.5. Instance Methods
3.2.5.1. How instance methods work
3.2.5.2. Instance methods or class methods?
3.2.6. Case Study: System.out.println( )
3.3. Creating and Initializing Objects
3.3.1. Defining a Constructor
3.3.2. Defining Multiple Constructors
3.3.3. Invoking One Constructor from Another
3.3.4. Field Defaults and Initializers
3.3.4.1. Initializer blocks
3.4. Destroying and Finalizing Objects
3.4.1. Garbage Collection
3.4.2. Memory Leaks in Java
3.4.3. Object Finalization
3.5. Subclasses and Inheritance
3.5.1. Extending a Class
3.5.1.1. Final classes
3.5.2. Superclasses, Object, and the Class Hierarchy
3.5.3. Subclass Constructors
3.5.4. Constructor Chaining and the Default Constructor
3.5.4.1. The default constructor
3.5.4.2. Finalizer chaining?
3.5.5. Hiding Superclass Fields
3.5.6. Overriding Superclass Methods
3.5.6.1. Overriding is not hiding
3.5.6.2. Dynamic method lookup
3.5.6.3. Final methods and static method lookup
3.5.6.4. Invoking an overridden method
3.6. Data Hiding and Encapsulation
3.6.1. Access Control
3.6.1.1. Access to packages
3.6.1.2. Access to classes
3.6.1.3. Access to members
3.6.1.4. Access control and inheritance
3.6.1.5. Member access summary
3.6.2. Data Accessor Methods
3.7. Abstract Classes and Methods
3.8. Important Methods of java.lang.Object
3.8.1. toString()
3.8.2. equals( )
3.8.3. hashCode( )
3.8.4. Comparable.compareTo( )
3.8.5. clone()
3.9. Interfaces
3.9.1. Defining an Interface
3.9.1.1. Extending interfaces
3.9.2. Implementing an Interface
3.9.2.1. Implementing multiple interfaces
3.9.3. Interfaces vs. Abstract Classes
3.9.4. Marker Interfaces
3.9.5. Interfaces and Constants
3.10. Nested Types
3.10.1. Static Member Types
3.10.1.1. Features of static member types
3.10.1.2. Restrictions on static member types
3.10.1.3. Syntax for static member types
3.10.2. Nonstatic Member Classes
3.10.2.1. Features of member classes
3.10.2.2. Restrictions on member classes
3.10.2.3. Syntax for member classes
3.10.2.3.1. Accessing superclass members of the containing class
3.10.2.3.2. Specifying the containing instance
3.10.2.4. Scope versus inheritance
3.10.3. Local Classes
3.10.3.1. Features of local classes
3.10.3.2. Restrictions on local classes
3.10.3.3. Syntax for local classes
3.10.3.4. Scope of a local class
3.10.3.5. Local variables, lexical scoping, and closures
3.10.4. Anonymous Classes
3.10.4.1. Features of anonymous classes
3.10.4.2. Restrictions on anonymous classes
3.10.4.3. Syntax for anonymous classes
3.10.4.4. When to use an anonymous class
3.10.4.5. Anonymous class indentation and formatting
3.10.5. How Nested Types Work
3.10.5.1. Static member type implementation
3.10.5.2. Nonstatic member class implementation
3.10.5.3. Local and anonymous class implementation
3.11. Modifier Summary
3.12. C++ Features Not Found in Java
4. Java 5.0 Language Features
4.1. Generic Types
4.1.1. Typesafe Collections
4.1.2. Understanding Generic Types
4.1.2.1. Raw types and unchecked warnings
4.1.2.2. The parameterized type hierarchy
4.1.2.3. Runtime type safety
4.1.2.4. Arrays of parameterized type
4.1.3. Type Parameter Wildcards
4.1.3.1. Bounded wildcards
4.1.4. Writing Generic Types and Methods
4.1.4.1. Type variable bounds
4.1.4.2. Wildcards in generic types
4.1.4.3. Generic methods
4.1.4.4. Invoking generic methods
4.1.4.5. Generic methods and arrays
4.1.4.6. Parameterized exceptions
4.1.5. Generics Case Study: Comparable and Enum
4.2. Enumerated Types
4.2.1. Enumerated Types Basics
4.2.1.1. Enumerated types are classes
4.2.1.2. Features of enumerated types
4.2.2. Using Enumerated Types
4.2.2.1. Enums and the switch statement
4.2.2.2. EnumMap
4.2.2.3. EnumSet
4.2.3. Advanced Enum Syntax
4.2.3.1. The class body of an enumerated type
4.2.3.2. Implementing an interface
4.2.3.3. Value-specific class bodies
4.2.3.3.1. When to use value-specific class bodies
4.2.3.4. Restrictions on enum types
4.2.4. The Typesafe Enum Pattern
4.3. Annotations
4.3.1. Annotation Concepts and Terminology
4.3.2. Using Standard Annotations
4.3.2.1. Override
4.3.2.2. Deprecated
4.3.2.3. SuppressWarnings
4.3.3. Annotation Syntax
4.3.3.1. Annotation member types and values
4.3.3.2. Annotation targets
4.3.3.3. Annotations and defaults
4.3.4. Annotations and Reflection
4.3.5. Defining Annotation Types
4.3.6. Meta-Annotations
4.3.6.1. Target
4.3.6.2. Retention
4.3.6.3. Documented
4.3.6.4. Inherited
5. The Java Platform
5.1. Java Platform Overview
5.2. Text
5.2.1. The String Class
5.2.2. The Character Class
5.2.3. The StringBuffer Class
5.2.4. The CharSequence Interface
5.2.5. The Appendable Interface
5.2.6. String Concatenation
5.2.7. String Comparison
5.2.8. Supplementary Characters
5.2.9. Formatting Text with printf() and format( )
5.2.10. Logging
5.2.11. Pattern Matching with Regular Expressions
5.2.12. Tokenizing Text
5.2.13. StringTokenizer
5.3. Numbers and Math
5.3.1. Mathematical Functions
5.3.2. Random Numbers
5.3.3. Big Numbers
5.3.4. Converting Numbers from and to Strings
5.3.5. Formatting Numbers
5.4. Dates and Times
5.4.1. Milliseconds and Nanoseconds
5.4.2. The Date Class
5.4.3. The Calendar Class
5.4.4. Formatting Dates and Times
5.5. Arrays
5.6. Collections
5.6.1. The Collection Interface
5.6.2. The Set Interface
5.6.3. The List Interface
5.6.4. The Map Interface
5.6.5. The Queue and BlockingQueue Interfaces
5.6.6. Collection Wrappers
5.6.7. Special-Case Collections
5.6.8. Converting to and from Arrays
5.6.9. Collections Utility Methods
5.6.10. Implementing Collections
5.7. Threads and Concurrency
5.7.1. Creating, Running, and Manipulating Threads
5.7.1.1. Thread lifecycle
5.7.1.2. Thread priorities
5.7.1.3. Handling uncaught exceptions
5.7.2. Making a Thread Sleep
5.7.3. Running and Scheduling Tasks
5.7.3.1. Scheduling tasks with Timer
5.7.3.2. The Executor interface
5.7.3.3. ExecutorService
5.7.3.4. ScheduledExecutorService
5.7.4. Exclusion and Locks
5.7.4.1. The java.util.concurrent.locks package
5.7.4.2. Deadlock
5.7.5. Coordinating Threads
5.7.5.1. wait( ) and notify()
5.7.5.2. Waiting on a Condition
5.7.5.3. Waiting for a thread to finish
5.7.5.4. Synchronizer utilities
5.7.6. Thread Interruption
5.7.7. Blocking Queues
5.7.8. Atomic Variables
5.8. Files and Directories
5.8.1. RandomAccessFile
5.9. Input/Output with java.io
5.9.1. Reading Console Input
5.9.2. Reading Lines from a Text File
5.9.3. Writing Text to a File
5.9.4. Reading a Binary File
5.9.5. Compressing Data
5.9.6. Reading ZIP Files
5.9.7. Computing Message Digests
5.9.8. Streaming Data to and from Arrays
5.9.9. Thread Communication with Pipes
5.10. Networking with java.net
5.10.1. Networking with the URL Class
5.10.2. Working with Sockets
5.10.3. Secure Sockets with SSL
5.10.4. Servers
5.10.5. Datagrams
5.10.6. Testing the Reachability of a Host
5.11. I/O and Networking with java.nio
5.11.1. Basic Buffer Operations
5.11.2. Basic Channel Operations
5.11.3. Encoding and Decoding Text with Charsets
5.11.4. Working with Files
5.11.5. Client-Side Networking
5.11.6. Server-Side Networking
5.11.7. Nonblocking I/O
5.12. XML
5.12.1. Parsing XML with SAX
5.12.2. Parsing XML with DOM
5.12.3. Transforming XML Documents
5.12.4. Validating XML Documents
5.12.5. Evaluating XPath Expressions
5.13. Types, Reflection, and Dynamic Loading
5.13.1. Class Objects
5.13.2. Reflecting on a Class
5.13.3. Dynamic Class Loading
5.13.4. Dynamic Proxies
5.14. Object Persistence
5.14.1. Serialization
5.14.2. JavaBeans Persistence
5.15. Security
5.15.1. Message Digests
5.15.2. Digital Signatures
5.15.3. Signed Objects
5.16. Cryptography
5.16.1. Secret Keys
5.16.2. Encryption and Decryption with Cipher
5.16.3. Encrypting and Decrypting Streams
5.16.4. Encrypted Objects
5.17. Miscellaneous Platform Features
5.17.1. Properties
5.17.2. Preferences
5.17.3. Processes
5.17.4. Management and Instrumentation
6. Java Security
6.1. Security Risks
6.2. Java VM Security and Class File Verification
6.3. Authentication and Cryptography
6.4. Access Control
6.4.1. Java 1.0: The Sandbox
6.4.1.1. How the sandbox works
6.4.2. Java 1.1: Digitally Signed Classes
6.4.3. Java 1.2: Permissions and Policies
6.4.3.1. How policies and permissions work
6.5. Security for Everyone
6.5.1. Security for System Programmers
6.5.2. Security for Application Programmers
6.5.3. Security for System Administrators
6.5.4. Security for End Users
6.6. Permission Classes
7. Programming and Documentation Conventions
7.1. Naming and Capitalization Conventions
7.2. Portability Conventions and Pure Java Rules
7.3. Java Documentation Comments
7.3.1. Structure of a Doc Comment
7.3.2. Doc-Comment Tags
7.3.3. Inline Doc Comment Tags
7.3.4. Cross-References in Doc Comments
7.3.5. Doc Comments for Packages
7.4. JavaBeans Conventions
7.4.1. Bean Basics
7.4.2. Bean Classes
7.4.3. Properties
7.4.4. Indexed Properties
7.4.5. Bound Properties
7.4.6. Constrained Properties
7.4.7. Events
8. Java Development Tools
apt
extcheck
jarsigner
jar
java
javac
javadoc
javah
javap
javaws
jconsole
jdb
jinfo
jmap
jps
jsadebugd
jstack
jstat
jstatd
keytool
native2ascii
pack200
policytool
serialver
unpack200
II. API Quick Reference
9. java.io
Package java.io
BufferedInputStream
BufferedOutputStream
BufferedReader
BufferedWriter
ByteArrayInputStream
ByteArrayOutputStream
CharArrayReader
CharArrayWriter
CharConversionException
Closeable
DataInput
DataInputStream
DataOutput
DataOutputStream
EOFException
Externalizable
File
FileDescriptor
FileFilter
FileInputStream
FilenameFilter
FileNotFoundException
FileOutputStream
FilePermission
FileReader
FileWriter
FilterInputStream
FilterOutputStream
FilterReader
FilterWriter
Flushable
InputStream
InputStreamReader
InterruptedIOException
InvalidClassException
InvalidObjectException
IOException
LineNumberInputStream
LineNumberReader
NotActiveException
NotSerializableException
ObjectInput
ObjectInputStream
ObjectInputStream.GetField
ObjectInputValidation
ObjectOutput
ObjectOutputStream
ObjectOutputStream.PutField
ObjectStreamClass
ObjectStreamConstants
ObjectStreamException
ObjectStreamField
OptionalDataException
OutputStream
OutputStreamWriter
PipedInputStream
PipedOutputStream
PipedReader
PipedWriter
PrintStream
PrintWriter
PushbackInputStream
PushbackReader
RandomAccessFile
Reader
SequenceInputStream
Serializable
SerializablePermission
StreamCorruptedException
StreamTokenizer
StringBufferInputStream
StringReader
StringWriter
SyncFailedException
UnsupportedEncodingException
UTFDataFormatException
WriteAbortedException
Writer
10. java.lang and Subpackages
Package java.lang
AbstractMethodError
AbstractStringBuilder
Appendable
ArithmeticException
ArrayIndexOutOfBoundsException
ArrayStoreException
AssertionError
Boolean
Byte
Character
Character.Subset
Character.UnicodeBlock
CharSequence
Class<T>
ClassCastException
ClassCircularityError
ClassFormatError
ClassLoader
ClassNotFoundException
Cloneable
CloneNotSupportedException
Comparable<T>
Compiler
Deprecated
Double
Enum<E extends Enum<E>>
EnumConstantNotPresentException
Error
Exception
ExceptionInInitializerError
Float
IllegalAccessError
IllegalAccessException
IllegalArgumentException
IllegalMonitorStateException
IllegalStateException
IllegalThreadStateException
IncompatibleClassChangeError
IndexOutOfBoundsException
InheritableThreadLocal<T>
InstantiationError
InstantiationException
Integer
InternalError
InterruptedException
Iterable<T>
LinkageError
Long
Math
NegativeArraySizeException
NoClassDefFoundError
NoSuchFieldError
NoSuchFieldException
NoSuchMethodError
NoSuchMethodException
NullPointerException
Number
NumberFormatException
Object
OutOfMemoryError
Override
Package
Process
ProcessBuilder
Readable
Runnable
Runtime
RuntimeException
RuntimePermission
SecurityException
SecurityManager
Short
StackOverflowError
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
StringIndexOutOfBoundsException
SuppressWarnings
System
Thread
Thread.State
Thread.UncaughtExceptionHandler
ThreadDeath
ThreadGroup
ThreadLocal<T>
Throwable
TypeNotPresentException
UnknownError
UnsatisfiedLinkError
UnsupportedClassVersionError
UnsupportedOperationException
VerifyError
VirtualMachineError
Void
Package java.lang.annotation
Annotation
AnnotationFormatError
AnnotationTypeMismatchException
Documented
ElementType
IncompleteAnnotationException
Inherited
Retention
RetentionPolicy
Target
Package java.lang.instrument
ClassDefinition
ClassFileTransformer
IllegalClassFormatException
Instrumentation
UnmodifiableClassException
Package java.lang.management
ClassLoadingMXBean
CompilationMXBean
GarbageCollectorMXBean
ManagementFactory
ManagementPermission
MemoryManagerMXBean
MemoryMXBean
MemoryNotificationInfo
MemoryPoolMXBean
MemoryType
MemoryUsage
OperatingSystemMXBean
RuntimeMXBean
ThreadInfo
ThreadMXBean
Package java.lang.ref
PhantomReference<T>
Reference<T>
ReferenceQueue<T>
SoftReference<T>
WeakReference<T>
Package java.lang.reflect
AccessibleObject
AnnotatedElement
Array
Constructor<T>
Field
GenericArrayType
GenericDeclaration
GenericSignatureFormatError
InvocationHandler
InvocationTargetException
MalformedParameterizedTypeException
Member
Method
Modifier
ParameterizedType
Proxy
ReflectPermission
Type
TypeVariable<D extends GenericDeclaration>
UndeclaredThrowableException
WildcardType
11. java.math
Package java.math
BigDecimal
BigInteger
MathContext
RoundingMode
12. java.net
Package java.net
Authenticator
Authenticator.RequestorType
BindException
CacheRequest
CacheResponse
ConnectException
ContentHandler
ContentHandlerFactory
CookieHandler
DatagramPacket
DatagramSocket
DatagramSocketImpl
DatagramSocketImplFactory
FileNameMap
HttpRetryException
HttpURLConnection
Inet4Address
Inet6Address
InetAddress
InetSocketAddress
JarURLConnection
MalformedURLException
MulticastSocket
NetPermission
NetworkInterface
NoRouteToHostException
PasswordAuthentication
PortUnreachableException
ProtocolException
Proxy
Proxy.Type
ProxySelector
ResponseCache
SecureCacheResponse
ServerSocket
Socket
SocketAddress
SocketException
SocketImpl
SocketImplFactory
SocketOptions
SocketPermission
SocketTimeoutException
UnknownHostException
UnknownServiceException
URI
URISyntaxException
URL
URLClassLoader
URLConnection
URLDecoder
URLEncoder
13. java.nio and Subpackages
Package java.nio
Buffer
BufferOverflowException
BufferUnderflowException
ByteBuffer
ByteOrder
CharBuffer
DoubleBuffer
FloatBuffer
IntBuffer
InvalidMarkException
LongBuffer
MappedByteBuffer
ReadOnlyBufferException
ShortBuffer
Package java.nio.channels
AlreadyConnectedException
AsynchronousCloseException
ByteChannel
CancelledKeyException
Channel
Channels
ClosedByInterruptException
ClosedChannelException
ClosedSelectorException
ConnectionPendingException
DatagramChannel
FileChannel
FileChannel.MapMode
FileLock
FileLockInterruptionException
GatheringByteChannel
IllegalBlockingModeException
IllegalSelectorException
InterruptibleChannel
NoConnectionPendingException
NonReadableChannelException
NonWritableChannelException
NotYetBoundException
NotYetConnectedException
OverlappingFileLockException
Pipe
Pipe.SinkChannel
Pipe.SourceChannel
ReadableByteChannel
ScatteringByteChannel
SelectableChannel
SelectionKey
Selector
ServerSocketChannel
SocketChannel
UnresolvedAddressException
UnsupportedAddressTypeException
WritableByteChannel
Package java.nio.channels.spi
AbstractInterruptibleChannel
AbstractSelectableChannel
AbstractSelectionKey
AbstractSelector
SelectorProvider
Package java.nio.charset
CharacterCodingException
Charset
CharsetDecoder
CharsetEncoder
CoderMalfunctionError
CoderResult
CodingErrorAction
IllegalCharsetNameException
MalformedInputException
UnmappableCharacterException
UnsupportedCharsetException
Package java.nio.charset.spi
CharsetProvider
14. java.security and Subpackages
Package java.security
AccessControlContext
AccessControlException
AccessController
AlgorithmParameterGenerator
AlgorithmParameterGeneratorSpi
AlgorithmParameters
AlgorithmParametersSpi
AllPermission
AuthProvider
BasicPermission
Certificate
CodeSigner
CodeSource
DigestException
DigestInputStream
DigestOutputStream
DomainCombiner
GeneralSecurityException
Guard
GuardedObject
Identity
IdentityScope
InvalidAlgorithmParameterException
InvalidKeyException
InvalidParameterException
Key
KeyException
KeyFactory
KeyFactorySpi
KeyManagementException
KeyPair
KeyPairGenerator
KeyPairGeneratorSpi
KeyRep
KeyRep.Type
KeyStore
KeyStore.Builder
KeyStore.CallbackHandlerProtection
KeyStore.Entry
KeyStore.LoadStoreParameter
KeyStore.PasswordProtection
KeyStore.PrivateKeyEntry
KeyStore.ProtectionParameter
KeyStore.SecretKeyEntry
KeyStore.TrustedCertificateEntry
KeyStoreException
KeyStoreSpi
MessageDigest
MessageDigestSpi
NoSuchAlgorithmException
NoSuchProviderException
Permission
PermissionCollection
Permissions
Policy
Principal
PrivateKey
PrivilegedAction<T>
PrivilegedActionException
PrivilegedExceptionAction<T>
ProtectionDomain
Provider
Provider.Service
ProviderException
PublicKey
SecureClassLoader
SecureRandom
SecureRandomSpi
Security
SecurityPermission
Signature
SignatureException
SignatureSpi
SignedObject
Signer
Timestamp
UnrecoverableEntryException
UnrecoverableKeyException
UnresolvedPermission
Package java.security.cert
Certificate
Certificate.CertificateRep
CertificateEncodingException
CertificateException
CertificateExpiredException
CertificateFactory
CertificateFactorySpi
CertificateNotYetValidException
CertificateParsingException
CertPath
CertPath.CertPathRep
CertPathBuilder
CertPathBuilderException
CertPathBuilderResult
CertPathBuilderSpi
CertPathParameters
CertPathValidator
CertPathValidatorException
CertPathValidatorResult
CertPathValidatorSpi
CertSelector
CertStore
CertStoreException
CertStoreParameters
CertStoreSpi
CollectionCertStoreParameters
CRL
CRLException
CRLSelector
LDAPCertStoreParameters
PKIXBuilderParameters
PKIXCertPathBuilderResult
PKIXCertPathChecker
PKIXCertPathValidatorResult
PKIXParameters
PolicyNode
PolicyQualifierInfo
TrustAnchor
X509Certificate
X509CertSelector
X509CRL
X509CRLEntry
X509CRLSelector
X509Extension
Package java.security.interfaces
DSAKey
DSAKeyPairGenerator
DSAParams
DSAPrivateKey
DSAPublicKey
ECKey
ECPrivateKey
ECPublicKey
RSAKey
RSAMultiPrimePrivateCrtKey
RSAPrivateCrtKey
RSAPrivateKey
RSAPublicKey
Package java.security.spec
AlgorithmParameterSpec
DSAParameterSpec
DSAPrivateKeySpec
DSAPublicKeySpec
ECField
ECFieldF2m
ECFieldFp
ECGenParameterSpec
ECParameterSpec
ECPoint
ECPrivateKeySpec
ECPublicKeySpec
EllipticCurve
EncodedKeySpec
InvalidKeySpecException
InvalidParameterSpecException
KeySpec
MGF1ParameterSpec
PKCS8EncodedKeySpec
PSSParameterSpec
RSAKeyGenParameterSpec
RSAMultiPrimePrivateCrtKeySpec
RSAOtherPrimeInfo
RSAPrivateCrtKeySpec
RSAPrivateKeySpec
RSAPublicKeySpec
X509EncodedKeySpec
15. java.text
Package java.text
Annotation
AttributedCharacterIterator
AttributedCharacterIterator.Attribute
AttributedString
Bidi
BreakIterator
CharacterIterator
ChoiceFormat
CollationElementIterator
CollationKey
Collator
DateFormat
DateFormat.Field
DateFormatSymbols
DecimalFormat
DecimalFormatSymbols
FieldPosition
Format
Format.Field
MessageFormat
MessageFormat.Field
NumberFormat
NumberFormat.Field
ParseException
ParsePosition
RuleBasedCollator
SimpleDateFormat
StringCharacterIterator
16. java.util and Subpackages
Package java.util
AbstractCollection<E>
AbstractList<E>
AbstractMap<K,V>
AbstractQueue<E>
AbstractSequentialList<E>
AbstractSet<E>
ArrayList<E>
Arrays
BitSet
Calendar
Collection<E>
Collections
Comparator<T>
ConcurrentModificationException
Currency
Date
Dictionary<K,V>
DuplicateFormatFlagsException
EmptyStackException
Enumeration<E>
EnumMap<K extends Enum<K>,V>
EnumSet<E extends Enum<E>>
EventListener
EventListenerProxy
EventObject
FormatFlagsConversionMismatchException
Formattable
FormattableFlags
Formatter
Formatter.BigDecimalLayoutForm
FormatterClosedException
GregorianCalendar
HashMap<K,V>
HashSet<E>
Hashtable<K,V>
IdentityHashMap<K,V>
IllegalFormatCodePointException
IllegalFormatConversionException
IllegalFormatException
IllegalFormatFlagsException
IllegalFormatPrecisionException
IllegalFormatWidthException
InputMismatchException
InvalidPropertiesFormatException
Iterator<E>
LinkedHashMap<K,V>
LinkedHashSet<E>
LinkedList<E>
List<E>
ListIterator<E>
ListResourceBundle
Locale
Map<K,V>
Map.Entry<K,V>
MissingFormatArgumentException
MissingFormatWidthException
MissingResourceException
NoSuchElementException
Observable
Observer
PriorityQueue<E>
Properties
PropertyPermission
PropertyResourceBundle
Queue<E>
Random
RandomAccess
ResourceBundle
Scanner
Set<E>
SimpleTimeZone
SortedMap<K,V>
SortedSet<E>
Stack<E>
StringTokenizer
Timer
TimerTask
TimeZone
TooManyListenersException
TreeMap<K,V>
TreeSet<E>
UnknownFormatConversionException
UnknownFormatFlagsException
UUID
Vector<E>
WeakHashMap<K,V>
Package java.util.concurrent
AbstractExecutorService
ArrayBlockingQueue<E>
BlockingQueue<E>
BrokenBarrierException
Callable<V>
CancellationException
CompletionService<V>
ConcurrentHashMap<K,V>
ConcurrentLinkedQueue<E>
ConcurrentMap<K,V>
CopyOnWriteArrayList<E>
CopyOnWriteArraySet<E>
CountDownLatch
CyclicBarrier
Delayed
DelayQueue<E extends Delayed>
Exchanger<V>
ExecutionException
Executor
ExecutorCompletionService<V>
Executors
ExecutorService
Future<V>
FutureTask<V>
LinkedBlockingQueue<E>
PriorityBlockingQueue<E>
RejectedExecutionException
RejectedExecutionHandler
ScheduledExecutorService
ScheduledFuture<V>
ScheduledThreadPoolExecutor
Semaphore
SynchronousQueue<E>
ThreadFactory
ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy
ThreadPoolExecutor.CallerRunsPolicy
ThreadPoolExecutor.DiscardOldestPolicy
ThreadPoolExecutor.DiscardPolicy
TimeoutException
TimeUnit
Package java.util.concurrent.atomic
AtomicBoolean
AtomicInteger
AtomicIntegerArray
AtomicIntegerFieldUpdater<T>
AtomicLong
AtomicLongArray
AtomicLongFieldUpdater<T>
AtomicMarkableReference<V>
AtomicReference<V>
AtomicReferenceArray<E>
AtomicReferenceFieldUpdater<T,V>
AtomicStampedReference<V>
Package java.util.concurrent.locks
AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject
Condition
Lock
LockSupport
ReadWriteLock
ReentrantLock
ReentrantReadWriteLock
ReentrantReadWriteLock.ReadLock
ReentrantReadWriteLock.WriteLock
Package java.util.jar
Attributes
Attributes.Name
JarEntry
JarException
JarFile
JarInputStream
JarOutputStream
Manifest
Pack200
Pack200.Packer
Pack200.Unpacker
Package java.util.logging
ConsoleHandler
ErrorManager
FileHandler
Filter
Formatter
Handler
Level
Logger
LoggingMXBean
LoggingPermission
LogManager
LogRecord
MemoryHandler
SimpleFormatter
SocketHandler
StreamHandler
XMLFormatter
Package java.util.prefs
AbstractPreferences
BackingStoreException
InvalidPreferencesFormatException
NodeChangeEvent
NodeChangeListener
PreferenceChangeEvent
PreferenceChangeListener
Preferences
PreferencesFactory
Package java.util.regex
Matcher
MatchResult
Pattern
PatternSyntaxException
Package java.util.zip
Adler32
CheckedInputStream
CheckedOutputStream
Checksum
CRC32
DataFormatException
Deflater
DeflaterOutputStream
GZIPInputStream
GZIPOutputStream
Inflater
InflaterInputStream
ZipEntry
ZipException
ZipFile
ZipInputStream
ZipOutputStream
17. javax.crypto and Subpackages
Package javax.crypto
BadPaddingException
Cipher
CipherInputStream
CipherOutputStream
CipherSpi
EncryptedPrivateKeyInfo
ExemptionMechanism
ExemptionMechanismException
ExemptionMechanismSpi
IllegalBlockSizeException
KeyAgreement
KeyAgreementSpi
KeyGenerator
KeyGeneratorSpi
Mac
MacSpi
NoSuchPaddingException
NullCipher
SealedObject
SecretKey
SecretKeyFactory
SecretKeyFactorySpi
ShortBufferException
Package javax.crypto.interfaces
DHKey
DHPrivateKey
DHPublicKey
PBEKey
Package javax.crypto.spec
DESedeKeySpec
DESKeySpec
DHGenParameterSpec
DHParameterSpec
DHPrivateKeySpec
DHPublicKeySpec
IvParameterSpec
OAEPParameterSpec
PBEKeySpec
PBEParameterSpec
PSource
PSource.PSpecified
RC2ParameterSpec
RC5ParameterSpec
SecretKeySpec
18. javax.net and javax.net.ssl
Package javax.net
ServerSocketFactory
SocketFactory
Package javax.net.ssl
CertPathTrustManagerParameters
HandshakeCompletedEvent
HandshakeCompletedListener
HostnameVerifier
HttpsURLConnection
KeyManager
KeyManagerFactory
KeyManagerFactorySpi
KeyStoreBuilderParameters
ManagerFactoryParameters
SSLContext
SSLContextSpi
SSLEngine
SSLEngineResult
SSLEngineResult.HandshakeStatus
SSLEngineResult.Status
SSLException
SSLHandshakeException
SSLKeyException
SSLPeerUnverifiedException
SSLPermission
SSLProtocolException
SSLServerSocket
SSLServerSocketFactory
SSLSession
SSLSessionBindingEvent
SSLSessionBindingListener
SSLSessionContext
SSLSocket
SSLSocketFactory
TrustManager
TrustManagerFactory
TrustManagerFactorySpi
X509ExtendedKeyManager
X509KeyManager
X509TrustManager
19. javax.security.auth and Subpackages
Package javax.security.auth
AuthPermission
Destroyable
DestroyFailedException
Policy
PrivateCredentialPermission
Refreshable
RefreshFailedException
Subject
SubjectDomainCombiner
Package javax.security.auth.callback
Callback
CallbackHandler
ChoiceCallback
ConfirmationCallback
LanguageCallback
NameCallback
PasswordCallback
TextInputCallback
TextOutputCallback
UnsupportedCallbackException
Package javax.security.auth.kerberos
DelegationPermission
KerberosKey
KerberosPrincipal
KerberosTicket
ServicePermission
Package javax.security.auth.login
AccountException
AccountExpiredException
AccountLockedException
AccountNotFoundException
AppConfigurationEntry
AppConfigurationEntry.LoginModuleControlFlag
Configuration
CredentialException
CredentialExpiredException
CredentialNotFoundException
FailedLoginException
LoginContext
LoginException
Package javax.security.auth.spi
LoginModule
Package javax.security.auth.x500
X500Principal
X500PrivateCredential
20. javax.xml and Subpackages
Package javax.xml
XMLConstants
Package javax.xml.datatype
DatatypeConfigurationException
DatatypeConstants
DatatypeConstants.Field
DatatypeFactory
Duration
XMLGregorianCalendar
Package javax.xml.namespace
NamespaceContext
QName
Package javax.xml.parsers
DocumentBuilder
DocumentBuilderFactory
FactoryConfigurationError
ParserConfigurationException
SAXParser
SAXParserFactory
Package javax.xml.transform
ErrorListener
OutputKeys
Result
Source
SourceLocator
Templates
Transformer
TransformerConfigurationException
TransformerException
TransformerFactory
TransformerFactoryConfigurationError
URIResolver
Package javax.xml.transform.dom
DOMLocator
DOMResult
DOMSource
Package javax.xml.transform.sax
SAXResult
SAXSource
SAXTransformerFactory
TemplatesHandler
TransformerHandler
Package javax.xml.transform.stream
StreamResult
StreamSource
Package javax.xml.validation
Schema
SchemaFactory
SchemaFactoryLoader
TypeInfoProvider
Validator
ValidatorHandler
Package javax.xml.xpath
XPath
XPathConstants
XPathException
XPathExpression
XPathExpressionException
XPathFactory
XPathFactoryConfigurationException
XPathFunction
XPathFunctionException
XPathFunctionResolver
XPathVariableResolver
21. org.w3c.dom
Package org.w3c.dom
Attr
CDATASection
CharacterData
Comment
Document
DocumentFragment
DocumentType
DOMConfiguration
DOMError
DOMErrorHandler
DOMException
DOMImplementation
DOMImplementationList
DOMImplementationSource
DOMLocator
DOMStringList
Element
Entity
EntityReference
NamedNodeMap
NameList
Node
NodeList
Notation
ProcessingInstruction
Text
TypeInfo
UserDataHandler
22. org.xml.sax and Subpackages
Package org.xml.sax
AttributeList
Attributes
ContentHandler
DocumentHandler
DTDHandler
EntityResolver
ErrorHandler
HandlerBase
InputSource
Locator
Parser
SAXException
SAXNotRecognizedException
SAXNotSupportedException
SAXParseException
XMLFilter
XMLReader
Package org.xml.sax.ext
Attributes2
Attributes2Impl
DeclHandler
DefaultHandler2
EntityResolver2
LexicalHandler
Locator2
Locator2Impl
Package org.xml.sax.helpers
AttributeListImpl
AttributesImpl
DefaultHandler
LocatorImpl
NamespaceSupport
ParserAdapter
ParserFactory
XMLFilterImpl
XMLReaderAdapter
XMLReaderFactory
23. Class, Method, and Field Index
23.1. A
23.2. B
23.3. C
23.4. D
23.5. E
23.6. F
23.7. G
23.8. H
23.9. I
23.10. J
23.11. K
23.12. L
23.13. M
23.14. N
23.15. O
23.16. P
23.17. Q
23.18. R
23.19. S
23.20. T
23.21. U
23.22. V
23.23. W
23.24. X
23.25. Y
23.26. Z
About the Author
Colophon
← Prev
Back
Next →
← Prev
Back
Next →