@Private
@Evolving
public abstract class FileSystemLinkResolver<T>
extends java.lang.Object
FileSystems.FSLinkResolver| Constructor | Description |
|---|---|
FileSystemLinkResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract T |
doCall(Path p) |
FileSystem subclass-specific implementation of superclass method.
|
abstract T |
next(FileSystem fs,
Path p) |
Calls the abstract FileSystem call equivalent to the specialized subclass
implementation in
doCall(Path). |
T |
resolve(FileSystem filesys,
Path path) |
public abstract T doCall(Path p) throws java.io.IOException, UnresolvedLinkException
Path.p - Path on which to perform an operationjava.io.IOException - raised on errors performing I/O.UnresolvedLinkException - unresolved link exception.public abstract T next(FileSystem fs, Path p) throws java.io.IOException
doCall(Path). This is used when retrying the
call with a newly resolved Path and corresponding new FileSystem.fs - FileSystem with which to retry callp - Resolved Target of pathjava.io.IOException - raised on errors performing I/O.public T resolve(FileSystem filesys, Path path) throws java.io.IOException
doCall(Path) method with
specified FileSystem and Path. If the call fails with an
UnresolvedLinkException, it will try to resolve the path and retry the call
by calling next(FileSystem, Path).filesys - FileSystem with which to try callpath - Path with which to try calljava.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.