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, wait
getInputStream, getName, isDirectory
protected static final int UNDEFINED_SIZE
protected void setSize(long size)
size
- the size.public long getSize()
ApplicationArchive.Entry
directory
.getSize
in interface ApplicationArchive.Entry
protected void setSha1Digest(byte[] sha1Digest)
sha1Digest
- public byte[] getSha1Digest()
ApplicationArchive.Entry
getSha1Digest
in interface ApplicationArchive.Entry
Copyright © 2014. All rights reserved.