Class FileClassFile

java.lang.Object
org.glassfish.rmic.tools.java.ClassFile
org.glassfish.rmic.tools.java.FileClassFile

final class FileClassFile extends ClassFile
This class is used to represent a file loaded from the class path, and is a regular file. 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.
  • Field Details

    • file

      private final File file
  • Constructor Details

    • FileClassFile

      public FileClassFile(File file)
      Constructor for instance representing a regular file
  • Method Details

    • isZipped

      public boolean isZipped()
      Description copied from class: ClassFile
      Returns true if this is zip file entry
      Specified by:
      isZipped in class ClassFile
    • getInputStream

      public InputStream getInputStream() throws IOException
      Description copied from class: ClassFile
      Returns input stream to either regular file or zip file entry
      Specified by:
      getInputStream in class ClassFile
      Throws:
      IOException
    • exists

      public boolean exists()
      Description copied from class: ClassFile
      Returns true if file exists.
      Specified by:
      exists in class ClassFile
    • isDirectory

      public boolean isDirectory()
      Description copied from class: ClassFile
      Returns true if this is a directory.
      Specified by:
      isDirectory in class ClassFile
    • lastModified

      public long lastModified()
      Description copied from class: ClassFile
      Return last modification time
      Specified by:
      lastModified in class ClassFile
    • getPath

      public String getPath()
      Description copied from class: ClassFile
      Get file path. The path for a zip file entry will also include the zip file name.
      Specified by:
      getPath in class ClassFile
    • getName

      public String getName()
      Description copied from class: ClassFile
      Get name of file entry excluding directory name
      Specified by:
      getName in class ClassFile
    • getAbsoluteName

      public String getAbsoluteName()
      Description copied from class: ClassFile
      Get absolute name of file entry
      Specified by:
      getAbsoluteName in class ClassFile
    • length

      public long length()
      Description copied from class: ClassFile
      Get length of file
      Specified by:
      length in class ClassFile
    • toString

      public String toString()
      Overrides:
      toString in class Object