Uses of Interface javax.tools.JavaFileManager (Java Platform SE 8 )
Date: 2026-08-19

## Uses of Interface
javax.tools.JavaFileManager

- Packages that use JavaFileManager
  Package | Description
  --- | ---
  javax.tools | Provides interfaces for tools which can be invoked from a program, for example, compilers.

- - ### Uses of JavaFileManager in javax.tools

    Classes in javax.tools with type parameters of type JavaFileManager
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ForwardingJavaFileManager<M extends JavaFileManager>` Forwards calls to a given file manager.

    Subinterfaces of JavaFileManager in javax.tools
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `StandardJavaFileManager` File manager based on java.io.File.

    Classes in javax.tools that implement JavaFileManager
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ForwardingJavaFileManager<M extends JavaFileManager>` Forwards calls to a given file manager.

    Fields in javax.tools declared as JavaFileManager
    Modifier and Type | Field and Description
    --- | ---
    `protected M` | ForwardingJavaFileManager.`fileManager` The file manager which all methods are delegated to.

    Methods in javax.tools with parameters of type JavaFileManager
    Modifier and Type | Method and Description
    --- | ---
    `DocumentationTool.DocumentationTask` | DocumentationTool.`getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Class<?> docletClass, Iterable<String> options, Iterable<? extends JavaFileObject> compilationUnits)` Creates a future for a documentation task with the given components and arguments.
    `JavaCompiler.CompilationTask` | JavaCompiler.`getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits)` Creates a future for a compilation task with the given components and arguments.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.