Package org.glassfish.rmic.tools.java
Class ZipClassFile
java.lang.Object
org.glassfish.rmic.tools.java.ClassFile
org.glassfish.rmic.tools.java.ZipClassFile
This class is used to represent a file loaded from the class path, and
is 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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZipClassFile(ZipFile zf, ZipEntry ze) Constructor for instance representing a zip file entry -
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 org.glassfish.rmic.tools.java.ClassFile
newClassFile, newClassFile, newClassFile
-
Field Details
-
zipFile
-
zipEntry
-
-
Constructor Details
-
ZipClassFile
Constructor for instance representing a zip file entry
-
-
Method Details
-
isZipped
public boolean isZipped()Description copied from class:ClassFileReturns true if this is zip file entry -
getInputStream
Description copied from class:ClassFileReturns input stream to either regular file or zip file entry- Specified by:
getInputStreamin classClassFile- Throws:
IOException
-
exists
public boolean exists()Description copied from class:ClassFileReturns true if file 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
Description copied from class:ClassFileGet file path. The path for a zip file entry will also include the zip file name. -
getName
Description copied from class:ClassFileGet name of file entry excluding directory name -
getAbsoluteName
Description copied from class:ClassFileGet absolute name of file entry- Specified by:
getAbsoluteNamein classClassFile
-
length
public long length()Description copied from class:ClassFileGet length of file -
toString
-