Package org.glassfish.rmic.tools.java
Class ZipClassFile
- java.lang.Object
-
- org.glassfish.rmic.tools.java.ClassFile
-
- org.glassfish.rmic.tools.java.ZipClassFile
-
final class ZipClassFile extends ClassFile
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.
-
-
Constructor Summary
Constructors Constructor Description ZipClassFile(java.util.zip.ZipFile zf, java.util.zip.ZipEntry ze)Constructor for instance representing a zip file entry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()Returns true if file exists.java.lang.StringgetAbsoluteName()Get absolute name of file entryjava.io.InputStreamgetInputStream()Returns input stream to either regular file or zip file entryjava.lang.StringgetName()Get name of file entry excluding directory namejava.lang.StringgetPath()Get file path.booleanisDirectory()Returns true if this is a directory.booleanisZipped()Returns true if this is zip file entrylonglastModified()Return last modification timelonglength()Get length of filejava.lang.StringtoString()-
Methods inherited from class org.glassfish.rmic.tools.java.ClassFile
newClassFile, newClassFile, newClassFile
-
-
-
-
Method Detail
-
isZipped
public boolean isZipped()
Description copied from class:ClassFileReturns true if this is zip file entry
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOExceptionDescription copied from class:ClassFileReturns input stream to either regular file or zip file entry- Specified by:
getInputStreamin classClassFile- Throws:
java.io.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
public java.lang.String getPath()
Description copied from class:ClassFileGet file path. The path for a zip file entry will also include the zip file name.
-
getName
public java.lang.String getName()
Description copied from class:ClassFileGet name of file entry excluding directory name
-
getAbsoluteName
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-