src/share/classes/javax/tools/StandardJavaFileManager.java

Print this page




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package javax.tools;
  27 
  28 import java.io.File;
  29 import java.io.IOException;
  30 import java.util.*;
  31 import java.util.concurrent.*;
  32 
  33 /**
  34  * File manager based on {@linkplain File java.io.File}.  A common way
  35  * to obtain an instance of this class is using {@linkplain
  36  * JavaCompiler#getStandardFileManager
  37  * getStandardFileManager}, for example:
  38  *
  39  * <pre>
  40  *   JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
  41  *   {@code DiagnosticCollector<JavaFileObject>} diagnostics =
  42  *       new {@code DiagnosticCollector<JavaFileObject>()};
  43  *   StandardJavaFileManager fm = compiler.getStandardFileManager(diagnostics, null, null);
  44  * </pre>
  45  *
  46  * This file manager creates file objects representing regular
  47  * {@linkplain File files},
  48  * {@linkplain java.util.zip.ZipEntry zip file entries}, or entries in
  49  * similar file system based containers.  Any file object returned
  50  * from a file manager implementing this interface must observe the
  51  * following behavior:




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package javax.tools;
  27 
  28 import java.io.File;
  29 import java.io.IOException;
  30 import java.util.*;

  31 
  32 /**
  33  * File manager based on {@linkplain File java.io.File}.  A common way
  34  * to obtain an instance of this class is using {@linkplain
  35  * JavaCompiler#getStandardFileManager
  36  * getStandardFileManager}, for example:
  37  *
  38  * <pre>
  39  *   JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
  40  *   {@code DiagnosticCollector<JavaFileObject>} diagnostics =
  41  *       new {@code DiagnosticCollector<JavaFileObject>()};
  42  *   StandardJavaFileManager fm = compiler.getStandardFileManager(diagnostics, null, null);
  43  * </pre>
  44  *
  45  * This file manager creates file objects representing regular
  46  * {@linkplain File files},
  47  * {@linkplain java.util.zip.ZipEntry zip file entries}, or entries in
  48  * similar file system based containers.  Any file object returned
  49  * from a file manager implementing this interface must observe the
  50  * following behavior: