dup


Description:

public abstract File dup ()

Duplicates a File handle.

This operation does not duplicate the actual file or directory represented by the File; see copy if attempting to copy a file.

This call does no blocking I/O.

Parameters:

this

input File

Returns:

a new File that is a duplicate of the given File.