|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjarify.JarFileEntry
class JarFileEntry
This class represents a single file within a JarFile. So, the data exchange is done via this wrapper class.
| Field Summary | |
|---|---|
private byte[] |
content
the content of the file in a byte array |
protected java.lang.String |
name
Name must be the fully qualified path name to this file (as given in the JAR MANIFEST.) |
private long |
size
the uncompressed size of the file |
private java.io.InputStream |
stream
an inputstream to read from this file |
| Constructor Summary | |
|---|---|
JarFileEntry(java.lang.String path,
long size,
java.io.InputStream stream)
Create a JarFileEntry to an existing file in a JarFile. |
|
| Method Summary | |
|---|---|
byte[] |
getContent()
Returns the content of the file. |
java.lang.String |
getName()
Returns the fully qualified path of the file. |
long |
getSize()
Returns the size of the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
private java.io.InputStream stream
private long size
private byte[] content
| Constructor Detail |
|---|
public JarFileEntry(java.lang.String path,
long size,
java.io.InputStream stream)
path - The fully qulified path and name of the file or a URL name.size - the uncompressed size of the filestream - the initialized inputstream to read from this file| Method Detail |
|---|
public java.lang.String getName()
public long getSize()
public byte[] getContent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||