public abstract class AbstractApplicationArchiveEntry extends Object implements ApplicationArchive.Entry
ApplicationArchive.Entry that is reads the input stream to deduce the size and SHA
digest.| Modifier and Type | Field and Description |
|---|---|
protected static int |
UNDEFINED_SIZE |
| Constructor and Description |
|---|
AbstractApplicationArchiveEntry() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSha1Digest()
|
long |
getSize()
Returns the size of entry or 0 if the entry is a
directory. |
protected void |
setSha1Digest(byte[] sha1Digest)
Sets the SHA1 digest that should be returned.
|
protected void |
setSize(long size)
Sets the size that should be returned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputStream, getName, isDirectoryprotected static final int UNDEFINED_SIZE
protected void setSize(long size)
size - the size.public long getSize()
ApplicationArchive.Entrydirectory.getSize in interface ApplicationArchive.Entryprotected void setSha1Digest(byte[] sha1Digest)
sha1Digest - public byte[] getSha1Digest()
ApplicationArchive.EntrygetSha1Digest in interface ApplicationArchive.EntryCopyright © 2015. All rights reserved.