Top Description Inners Fields Constructors Methods
sun.nio.fs

public final Class ExtendedOptions

extends Object
Class Inheritance
Imports
java.nio.file.CopyOption, .OpenOption, .WatchEvent, java.util.Map, java.util.concurrent.ConcurrentHashMap

Provides support for handling JDK-specific OpenOption, CopyOption and WatchEvent.Modifier types.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ExtendedOptions.InternalOption<T>

The internal version of a JDK-specific OpenOption, CopyOption or WatchEvent.Modifier.

private static class
ExtendedOptions.Wrapper<T>

Wraps an option or modifier.

Field Summary

Modifier and TypeField and Description
public static final ExtendedOptions.InternalOption<Void>
public static final ExtendedOptions.InternalOption<Void>
private static final Map<ExtendedOptions.InternalOption<?>, ExtendedOptions.Wrapper<?>>
public static final ExtendedOptions.InternalOption<Void>
public static final ExtendedOptions.InternalOption<Void>
public static final ExtendedOptions.InternalOption<Void>
public static final ExtendedOptions.InternalOption<Void>
public static final ExtendedOptions.InternalOption<Integer>
public static final ExtendedOptions.InternalOption<Integer>
public static final ExtendedOptions.InternalOption<Integer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DIRECTback to summary
public static final ExtendedOptions.InternalOption<Void> DIRECT
FILE_TREEback to summary
public static final ExtendedOptions.InternalOption<Void> FILE_TREE
internalToExternalback to summary
private static final Map<ExtendedOptions.InternalOption<?>, ExtendedOptions.Wrapper<?>> internalToExternal
INTERRUPTIBLEback to summary
public static final ExtendedOptions.InternalOption<Void> INTERRUPTIBLE
NOSHARE_DELETEback to summary
public static final ExtendedOptions.InternalOption<Void> NOSHARE_DELETE
NOSHARE_READback to summary
public static final ExtendedOptions.InternalOption<Void> NOSHARE_READ
NOSHARE_WRITEback to summary
public static final ExtendedOptions.InternalOption<Void> NOSHARE_WRITE
SENSITIVITY_HIGHback to summary
public static final ExtendedOptions.InternalOption<Integer> SENSITIVITY_HIGH
SENSITIVITY_LOWback to summary
public static final ExtendedOptions.InternalOption<Integer> SENSITIVITY_LOW
SENSITIVITY_MEDIUMback to summary
public static final ExtendedOptions.InternalOption<Integer> SENSITIVITY_MEDIUM

Constructor Detail

ExtendedOptionsback to summary
public ExtendedOptions()
sun.nio.fs back to summary

public final Class ExtendedOptions.InternalOption<T>

extends Object
Class Inheritance

The internal version of a JDK-specific OpenOption, CopyOption or WatchEvent.Modifier.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(Object option)

Returns true if the given option (or modifier) maps to this internal option.

public T
parameter()

Returns the parameter object associated with this internal option.

public void
register(OpenOption option)

Register this internal option as a OpenOption.

public void
register(CopyOption option)

Register this internal option as a CopyOption.

public void
register(WatchEvent.Modifier option)

Register this internal option as a WatchEvent.Modifier.

public void
register(WatchEvent.Modifier option, T param)

Register this internal option as a WatchEvent.Modifier with the given parameter.

private void
registerInternal(Object option, T param)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InternalOptionback to summary
pack-priv InternalOption()

Method Detail

matchesback to summary
public boolean matches(Object option)

Returns true if the given option (or modifier) maps to this internal option.

parameterback to summary
public T parameter()

Returns the parameter object associated with this internal option.

Annotations
@SuppressWarnings:unchecked
registerback to summary
public void register(OpenOption option)

Register this internal option as a OpenOption.

registerback to summary
public void register(CopyOption option)

Register this internal option as a CopyOption.

registerback to summary
public void register(WatchEvent.Modifier option)

Register this internal option as a WatchEvent.Modifier.

registerback to summary
public void register(WatchEvent.Modifier option, T param)

Register this internal option as a WatchEvent.Modifier with the given parameter.

registerInternalback to summary
private void registerInternal(Object option, T param)
sun.nio.fs back to summary

private final Class ExtendedOptions.Wrapper<T>

extends Object
Class Inheritance

Wraps an option or modifier.

Field Summary

Modifier and TypeField and Description
private final Object
private final T

Constructor Summary

AccessConstructor and Description
pack-priv
Wrapper(Object option, T param)

Method Summary

Modifier and TypeMethod and Description
pack-priv T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

optionback to summary
private final Object option
paramback to summary
private final T param

Constructor Detail

Wrapperback to summary
pack-priv Wrapper(Object option, T param)

Method Detail

parameterback to summary
pack-priv T parameter()