Java Doc for ZipEntry.java in  » Apache-Harmony-Java-SE » java-package » java » util » zip » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.util.zip 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.zip.ZipEntry

All known Subclasses:   java.util.jar.JarEntry,
ZipEntry
public class ZipEntry implements ZipConstants,Cloneable(Code)
ZipEntry represents an entry in a zip file.
See Also:   ZipFile
See Also:   ZipInputStream


Field Summary
final public static  intDEFLATED
    
final public static  intSTORED
    
 longcompressedSizecrcsizedataOffset
    
 intcompressionMethodtimemodDate
    
 byte[]extra
    
 Stringnamecomment
    

Constructor Summary
public  ZipEntry(String name)
     Constructs a new ZipEntry with the specified name.
 ZipEntry(String name, String comment, byte[] extra, long modTime, long size, long compressedSize, long crc, int compressionMethod, long modDate, long offset)
    
public  ZipEntry(ZipEntry ze)
     Constructs a new ZipEntry using the values obtained from ze.

Method Summary
public  Objectclone()
    
public  StringgetComment()
     Gets the comment for this ZipEntry.
public  longgetCompressedSize()
     Gets the compressed size of this ZipEntry.
public  longgetCrc()
     Gets the crc for this ZipEntry.
public  byte[]getExtra()
     Gets the extra information for this ZipEntry.
public  intgetMethod()
     Gets the compression method for this ZipEntry.
public  StringgetName()
     Gets the name of this ZipEntry.
public  longgetSize()
     Gets the uncompressed size of this ZipEntry.
public  longgetTime()
     Gets the last modification time of this ZipEntry. the last modification time as the number of milliseconds sinceJan.
public  inthashCode()
     Returns the hashCode for this ZipEntry.
public  booleanisDirectory()
     Answers if this ZipEntry is a directory.
public  voidsetComment(String string)
     Sets the comment for this ZipEntry.
public  voidsetCompressedSize(long value)
     Sets the compressed size for this ZipEntry.
public  voidsetCrc(long value)
     Sets the crc for this ZipEntry.
public  voidsetExtra(byte[] data)
     Sets the extra information for this ZipEntry.
public  voidsetMethod(int value)
     Sets the compression method for this ZipEntry.
public  voidsetSize(long value)
     Sets the uncompressed size of this ZipEntry.
public  voidsetTime(long value)
     Sets the last modification time of this ZipEntry.
Parameters:
  value - the last modification time as the number of milliseconds sinceJan.
public  StringtoString()
     Answers the string representation of this ZipEntry.

Field Detail
DEFLATED
final public static int DEFLATED(Code)
Zip entry state: Deflated



STORED
final public static int STORED(Code)
Zip entry state: Stored



compressedSizecrcsizedataOffset
long compressedSizecrcsizedataOffset(Code)



compressionMethodtimemodDate
int compressionMethodtimemodDate(Code)



extra
byte[] extra(Code)



namecomment
String namecomment(Code)




Constructor Detail
ZipEntry
public ZipEntry(String name)(Code)
Constructs a new ZipEntry with the specified name.
Parameters:
  name - the name of the zip entry



ZipEntry
ZipEntry(String name, String comment, byte[] extra, long modTime, long size, long compressedSize, long crc, int compressionMethod, long modDate, long offset)(Code)



ZipEntry
public ZipEntry(ZipEntry ze)(Code)
Constructs a new ZipEntry using the values obtained from ze.
Parameters:
  ze - ZipEntry from which to obtain values.




Method Detail
clone
public Object clone()(Code)
Returns a shallow copy of this entry a copy of this entry



getComment
public String getComment()(Code)
Gets the comment for this ZipEntry. the comment for this ZipEntry, or null if there is no comment



getCompressedSize
public long getCompressedSize()(Code)
Gets the compressed size of this ZipEntry. the compressed size, or -1 if the compressed size has not beenset



getCrc
public long getCrc()(Code)
Gets the crc for this ZipEntry. the crc, or -1 if the crc has not been set



getExtra
public byte[] getExtra()(Code)
Gets the extra information for this ZipEntry. a byte array containing the extra information, or null if thereis none



getMethod
public int getMethod()(Code)
Gets the compression method for this ZipEntry. the compression method, either DEFLATED, STORED or -1 if thecompression method has not been set



getName
public String getName()(Code)
Gets the name of this ZipEntry. the entry name



getSize
public long getSize()(Code)
Gets the uncompressed size of this ZipEntry. the uncompressed size, or -1 if the size has not been set



getTime
public long getTime()(Code)
Gets the last modification time of this ZipEntry. the last modification time as the number of milliseconds sinceJan. 1, 1970



hashCode
public int hashCode()(Code)
Returns the hashCode for this ZipEntry. the hashCode of the entry



isDirectory
public boolean isDirectory()(Code)
Answers if this ZipEntry is a directory. true when this ZipEntry is a directory,false otherwise



setComment
public void setComment(String string)(Code)
Sets the comment for this ZipEntry.
Parameters:
  string - the comment



setCompressedSize
public void setCompressedSize(long value)(Code)
Sets the compressed size for this ZipEntry.
Parameters:
  value - the compressed size



setCrc
public void setCrc(long value)(Code)
Sets the crc for this ZipEntry.
Parameters:
  value - the crc
throws:
  IllegalArgumentException - if value is < 0 or > 0xFFFFFFFFL



setExtra
public void setExtra(byte[] data)(Code)
Sets the extra information for this ZipEntry.
Parameters:
  data - a byte array containing the extra information
throws:
  IllegalArgumentException - when the length of data is > 0xFFFF bytes



setMethod
public void setMethod(int value)(Code)
Sets the compression method for this ZipEntry.
Parameters:
  value - the compression method, either DEFLATED or STORED
throws:
  IllegalArgumentException - when value is not DEFLATED or STORED



setSize
public void setSize(long value)(Code)
Sets the uncompressed size of this ZipEntry.
Parameters:
  value - the uncompressed size
throws:
  IllegalArgumentException - if value is < 0 or > 0xFFFFFFFFL



setTime
public void setTime(long value)(Code)
Sets the last modification time of this ZipEntry.
Parameters:
  value - the last modification time as the number of milliseconds sinceJan. 1, 1970



toString
public String toString()(Code)
Answers the string representation of this ZipEntry. the string representation of this ZipEntry



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.