Package | Description |
---|---|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files.
|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
Modifier and Type | Method and Description |
---|---|
static FileChannel |
FileChannel.open(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
Opens or creates a file, returning a file channel to access the file.
|
Modifier and Type | Method and Description |
---|---|
abstract Set<String> |
FileSystem.supportedFileAttributeViews()
Returns the set of the file attribute view names of the file
attribute views supported by this
FileSystem . |
Modifier and Type | Method and Description |
---|---|
static SeekableByteChannel |
Files.newByteChannel(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
Opens or creates a file, returning a seekable byte channel to access the
file.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSet<E>
This class provides a skeletal implementation of the Set
interface to minimize the effort required to implement this
interface.
|
class |
HashSet<E>
This class implements the Set interface, backed by a hash table
(actually a HashMap instance).
|
class |
LinkedHashSet<E>
Hash table and linked list implementation of the Set interface,
with predictable iteration order.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<K,V>> |
WeakHashMap.entrySet()
Returns a
Set view of the mappings contained in this map. |
Set<Map.Entry<K,V>> |
Map.entrySet()
Returns a
Set view of the mappings contained in this map. |
Set<Map.Entry<K,V>> |
Hashtable.entrySet()
Returns a
Set view of the mappings contained in this map. |
Set<Map.Entry<K,V>> |
HashMap.entrySet()
Returns a
Set view of the mappings contained in this map. |
abstract Set<Map.Entry<K,V>> |
AbstractMap.entrySet() |
Set<K> |
WeakHashMap.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
Map.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
Hashtable.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
HashMap.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
AbstractMap.keySet()
Returns a
Set view of the keys contained in this map. |
Set<String> |
Properties.stringPropertyNames()
Returns a set of keys in this property list where
the key and its corresponding value are strings,
including distinct keys in the default property list if a key
of the same name has not already been found from the main
properties list.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.