FileDocCategorySizeDatePackage
ForwardingJavaFileManager.javaAPI DocJava SE 6 API4696Tue Jun 10 00:27:02 BST 2008javax.tools

ForwardingJavaFileManager

public class ForwardingJavaFileManager extends Object implements JavaFileManager
Forwards calls to a given file manager. Subclasses of this class might override some of these methods and might also provide additional fields and methods.
param
the kind of file manager forwarded to by this object
author
Peter von der Ahé
since
1.6

Fields Summary
protected final M
fileManager
The file manager which all methods are delegated to.
Constructors Summary
protected ForwardingJavaFileManager(M fileManager)
Creates a new instance of ForwardingJavaFileManager.

param
fileManager delegate to this file manager

        fileManager.getClass(); // null check
        this.fileManager = fileManager;
    
Methods Summary
public voidclose()

        fileManager.close();
    
public voidflush()

        fileManager.flush();
    
public java.lang.ClassLoadergetClassLoader(Location location)

throws
SecurityException {@inheritDoc}
throws
IllegalStateException {@inheritDoc}

        return fileManager.getClassLoader(location);
    
public javax.tools.FileObjectgetFileForInput(Location location, java.lang.String packageName, java.lang.String relativeName)

throws
IllegalArgumentException {@inheritDoc}
throws
IllegalStateException {@inheritDoc}

        return fileManager.getFileForInput(location, packageName, relativeName);
    
public javax.tools.FileObjectgetFileForOutput(Location location, java.lang.String packageName, java.lang.String relativeName, javax.tools.FileObject sibling)

throws
IllegalArgumentException {@inheritDoc}
throws
IllegalStateException {@inheritDoc}

        return fileManager.getFileForOutput(location, packageName, relativeName, sibling);
    
public javax.tools.JavaFileObjectgetJavaFileForInput(Location location, java.lang.String className, javax.tools.JavaFileObject.Kind kind)

throws
IllegalArgumentException {@inheritDoc}
throws
IllegalStateException {@inheritDoc}

        return fileManager.getJavaFileForInput(location, className, kind);
    
public javax.tools.JavaFileObjectgetJavaFileForOutput(Location location, java.lang.String className, javax.tools.JavaFileObject.Kind kind, javax.tools.FileObject sibling)

throws
IllegalArgumentException {@inheritDoc}
throws
IllegalStateException {@inheritDoc}

        return fileManager.getJavaFileForOutput(location, className, kind, sibling);
    
public booleanhandleOption(java.lang.String current, java.util.Iterator remaining)

throws
IllegalArgumentException {@inheritDoc}
throws
IllegalStateException {@inheritDoc}

        return fileManager.handleOption(current, remaining);
    
public booleanhasLocation(Location location)

        return fileManager.hasLocation(location);
    
public java.lang.StringinferBinaryName(Location location, javax.tools.JavaFileObject file)

throws
IllegalStateException {@inheritDoc}

        return fileManager.inferBinaryName(location, file);
    
public booleanisSameFile(javax.tools.FileObject a, javax.tools.FileObject b)

throws
IllegalArgumentException {@inheritDoc}

        return fileManager.isSameFile(a, b);
    
public intisSupportedOption(java.lang.String option)

        return fileManager.isSupportedOption(option);
    
public java.lang.Iterablelist(Location location, java.lang.String packageName, java.util.Set kinds, boolean recurse)

throws
IOException {@inheritDoc}
throws
IllegalStateException {@inheritDoc}

        return fileManager.list(location, packageName, kinds, recurse);