Package org.glassfish.rmic.tools.java
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 TypeMethodDescriptionboolean
exists()
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.boolean
Returns true if this is a directory.boolean
isZipped()
Returns true if this is zip file entrylong
Return last modification timelong
length()
Get length of filetoString()
Methods inherited from class org.glassfish.rmic.tools.java.ClassFile
newClassFile, newClassFile, newClassFile
-
Field Details
-
path
-
attrs
-
-
Constructor Details
-
PathClassFile
Constructor for instance representing a Path
-
-
Method Details
-
isZipped
public boolean isZipped()Description copied from class:ClassFile
Returns true if this is zip file entry -
getInputStream
Description copied from class:ClassFile
Returns input stream to either regular file or zip file entry- Specified by:
getInputStream
in classClassFile
- Throws:
IOException
-
exists
public boolean exists()Description copied from class:ClassFile
Returns true if file exists. -
isDirectory
public boolean isDirectory()Description copied from class:ClassFile
Returns true if this is a directory.- Specified by:
isDirectory
in classClassFile
-
lastModified
public long lastModified()Description copied from class:ClassFile
Return last modification time- Specified by:
lastModified
in classClassFile
-
getPath
Description copied from class:ClassFile
Get file path. The path for a zip file entry will also include the zip file name. -
getName
Description copied from class:ClassFile
Get name of file entry excluding directory name -
getAbsoluteName
Description copied from class:ClassFile
Get absolute name of file entry- Specified by:
getAbsoluteName
in classClassFile
-
length
public long length()Description copied from class:ClassFile
Get length of file -
toString
-