AO TempFiles

project: current stablemanagement: productionpackaging: active
java: >= 8semantic versioning: 2.0.0license: LGPL v3

BuildMaven CentralQuality Gate StatusLines of Code
Reliability RatingSecurity RatingMaintainability RatingCoverage

Java temporary file API filling-in JDK gaps and deficiencies.

Modules

Features

  • Small and simple API for dealing with temporary files.
  • Small footprint, self-contained, no transitive dependencies - not part of a big monolithic package.
  • Java 1.8 implementation:
    • Android compatible.

Motivation

The Java language has a long-term and well-documented memory leak when using File.deleteOnExit(). The bug report has been open for 14 years as of the time of this writing.

We desire to not have to choose between a memory leak and garbage files possibly left behind on shutdown, thus this API was born.