| |
|
| java.lang.Object sun.tools.java.ClassFile
ClassFile | public class ClassFile (Code) | | This class is used to represent a file loaded from the class path, and
can either be a regular file or a zip file entry.
WARNING: The contents of this source file are not part of any
supported API. Code that depends on them does so at its own risk:
they are subject to change or removal without notice.
|
ClassFile | public ClassFile(File file)(Code) | | Constructor for instance representing a regular file
|
ClassFile | public ClassFile(ZipFile zf, ZipEntry ze)(Code) | | Constructor for instance representing a zip file entry
|
exists | public boolean exists()(Code) | | Returns true if file exists.
|
getAbsoluteName | public String getAbsoluteName()(Code) | | Get absolute name of file entry
|
getName | public String getName()(Code) | | Get name of file entry excluding directory name
|
getPath | public String getPath()(Code) | | Get file path. The path for a zip file entry will also include
the zip file name.
|
isDirectory | public boolean isDirectory()(Code) | | Returns true if this is a directory.
|
isZipped | public boolean isZipped()(Code) | | Returns true if this is zip file entry
|
lastModified | public long lastModified()(Code) | | Return last modification time
|
length | public long length()(Code) | | Get length of file
|
|
|
|