Top Description Inners Constructors Methods
java.nio.file

pack-priv Class CopyMoveHelper

extends Object
Class Inheritance
Imports
java.io.InputStream, .IOException, java.nio.file.attribute.BasicFileAttributes, .BasicFileAttributeView, .PosixFileAttributes, .PosixFileAttributeView, java.nio.file.spi.FileSystemProvider

Helper class to support copying or moving files when the source and target are associated with different providers.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
CopyMoveHelper.CopyOptions

Parses the arguments for a file copy operation.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static CopyOption[]
convertMoveToCopyOptions(CopyOption... options)

Converts the given array of options for moving a file to options suitable for copying the file when a move is implemented as copy + delete.

pack-priv static void
copyToForeignTarget(Path source, Path target, CopyOption... options)

Simple copy for use when source and target are associated with different providers

pack-priv static void
moveToForeignTarget(Path source, Path target, CopyOption... options)

Simple move implements as copy+delete for use when source and target are associated with different providers

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CopyMoveHelperback to summary
private CopyMoveHelper()

Method Detail

convertMoveToCopyOptionsback to summary
private static CopyOption[] convertMoveToCopyOptions(CopyOption... options) throws AtomicMoveNotSupportedException

Converts the given array of options for moving a file to options suitable for copying the file when a move is implemented as copy + delete.

copyToForeignTargetback to summary
pack-priv static void copyToForeignTarget(Path source, Path target, CopyOption... options) throws IOException

Simple copy for use when source and target are associated with different providers

moveToForeignTargetback to summary
pack-priv static void moveToForeignTarget(Path source, Path target, CopyOption... options) throws IOException

Simple move implements as copy+delete for use when source and target are associated with different providers

java.nio.file back to summary

private Class CopyMoveHelper.CopyOptions

extends Object
Class Inheritance

Parses the arguments for a file copy operation.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv boolean
pack-priv boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static CopyMoveHelper.CopyOptions
parse(CopyOption... options)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

copyAttributesback to summary
pack-priv boolean copyAttributes
replaceExistingback to summary
pack-priv boolean replaceExisting

Constructor Detail

CopyOptionsback to summary
private CopyOptions()

Method Detail

parseback to summary
pack-priv static CopyMoveHelper.CopyOptions parse(CopyOption... options)