Class PartialFile
java.lang.Object
org.eclipse.aether.connector.basic.PartialFile
- All Implemented Interfaces:
Closeable
,AutoCloseable
A partially downloaded file with optional support for resume. If resume is enabled, a well-known location is used for
the partial file in combination with a lock file to prevent concurrent requests from corrupting it (and wasting
network bandwith). Otherwise, a (non-locked) unique temporary file is used.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static interface
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PartialFile
(File partFile) private
PartialFile
(File partFile, PartialFile.LockFile lockFile, long threshold) -
Method Summary
-
Field Details
-
EXT_PART
- See Also:
-
EXT_LOCK
- See Also:
-
partFile
-
lockFile
-
threshold
private final long threshold -
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
PartialFile
-
PartialFile
-
-
Method Details
-
getFile
-
isResume
public boolean isResume() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
toString
-