Class PathClassFile
java.lang.Object
org.glassfish.rmic.tools.java.ClassFile
org.glassfish.rmic.tools.java.PathClassFile
This class is used to represent a file loaded from the class path, and
is represented by nio Path.
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Returns true if file exists.Get absolute name of file entryReturns input stream to either regular file or zip file entrygetName()Get name of file entry excluding directory namegetPath()Get file path.booleanReturns true if this is a directory.booleanisZipped()Returns true if this is zip file entrylongReturn last modification timelonglength()Get length of filetoString()Methods inherited from class ClassFile
newClassFile, newClassFile, newClassFile
-
Field Details
-
path
-
attrs
-
-
Constructor Details
-
PathClassFile
Constructor for instance representing a Path
-
-
Method Details
-
isZipped
-
getInputStream
Description copied from class:ClassFileReturns input stream to either regular file or zip file entry- Specified by:
getInputStreamin classClassFile- Throws:
IOException
-
exists
-
isDirectory
public boolean isDirectory()Description copied from class:ClassFileReturns true if this is a directory.- Specified by:
isDirectoryin classClassFile
-
lastModified
public long lastModified()Description copied from class:ClassFileReturn last modification time- Specified by:
lastModifiedin classClassFile
-
getPath
-
getName
-
getAbsoluteName
Description copied from class:ClassFileGet absolute name of file entry- Specified by:
getAbsoluteNamein classClassFile
-
length
-
toString
-