

Originating source files unless a class file output directory The JDK compiler, javac, forĮxample, will place class files in the same directories as Optionally, this file manager might consider the sibling asĪ hint for where to place the output. Representing the specified class of the specified kind in the Throw a NullPointerException if given a null argument. Unless explicitly allowed, all methods in this interface might JarOutputStream directly, the contents must be cached until closed

That is, rather than creating a JavaFileObject that returns the Is that a trivial implementation of output to a JarOutputStream is not a sufficient implementation. Implementation note: a consequence of this requirement Support concurrent access to different file objects created by this Multi-threaded access, that is, be synchronized. getPath().equals(relativeName)Īll methods in this interface might throw a SecurityException.Īn object of this interface is not required to support Match the "path-rootless" rule of RFC 3986, Non-null, non-empty sequence of path segments separated by '/'. Methods in this interface use relative names. Not case-aware, file objects must use other means to preserve case. Such files should take care to preserve case by using File.getCanonicalFile() or similar means. For example, some file systems haveĬase-insensitive, case-aware file names. All names should be treatedĪs case-sensitive. "java/lang.package-info", "java/lang/package-info", For convenience '.'Īnd '/' are interchangeable. Names must be given in the Java Virtual Machine internal form ofįully qualified class and interface names. Some methods in this interface use class names. A number of hints can be provided to a file

Manages regular files on a file system, it would most likely have aĬurrent/working directory to use as default location when creating When constructing new JavaFileObjects, the file manager mustĭetermine where to create them. In this context, file means anĪbstraction of regular files and other sources of data. File manager for tools operating on Java programming language
