| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| pack-priv static class | ManifestDigester.
state returned by findSection |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | entries
individual sections by their names |
| private final ManifestDigester. | |
| public static final String | MF_MAIN_ATTRS
The part " Specification
|
| private final byte[] | rawBytes
the raw bytes of the manifest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: false if end of bytes has been reached, otherwise returns trueshould point to the starting offset with in the
raw bytes of the next section. offset, ManifestDigester.find a section in the manifest. |
| public ManifestDigester. | |
| public ManifestDigester. | |
| public ManifestDigester. | |
| public ManifestDigester. | |
| private boolean | |
| public byte[] |
| entries | back to summary |
|---|---|
| private final HashMap<String, ManifestDigester. individual sections by their names | |
| mainAttsEntry | back to summary |
|---|---|
| private final ManifestDigester. | |
| MF_MAIN_ATTRS | back to summary |
|---|---|
| public static final String MF_MAIN_ATTRS The part " Specification
| |
| rawBytes | back to summary |
|---|---|
| private final byte[] rawBytes the raw bytes of the manifest | |
| ManifestDigester | back to summary |
|---|---|
| public ManifestDigester(byte[] bytes) | |
| findSection | back to summary |
|---|---|
| private boolean findSection(int offset, ManifestDigester. find a section in the manifest.
| |
| get | back to summary |
|---|---|
| public ManifestDigester. | |
| get | back to summary |
|---|---|
| public ManifestDigester. | |
| getMainAttsEntry | back to summary |
|---|---|
public ManifestDigester.
| |
| getMainAttsEntry | back to summary |
|---|---|
public ManifestDigester.
| |
| isNameAttr | back to summary |
|---|---|
| private boolean isNameAttr(byte[] bytes, int start) | |
| manifestDigest | back to summary |
|---|---|
| public byte[] manifestDigest(MessageDigest md) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private ManifestDigester. | |
| public byte[] | |
| public byte[] | |
| public boolean | isProperlyDelimited()
Check if the sections (particularly the last one of usually only one)
are properly delimited with a trailing blank line so that another
section can be correctly appended and return |
| public void |
| oldStyle | back to summary |
|---|---|
| pack-priv boolean oldStyle | |
| sections | back to summary |
|---|---|
| private final List<ManifestDigester. | |
| Entry | back to summary |
|---|---|
| public Entry() | |
| addSection | back to summary |
|---|---|
| private ManifestDigester. | |
| digest | back to summary |
|---|---|
| public byte[] digest(MessageDigest md) | |
| digestWorkaround | back to summary |
|---|---|
| public byte[] digestWorkaround(MessageDigest md) Netscape doesn't include the new line. Intel and JavaSoft do | |
| isProperlyDelimited | back to summary |
|---|---|
| public boolean isProperlyDelimited() Check if the sections (particularly the last one of usually only one)
are properly delimited with a trailing blank line so that another
section can be correctly appended and return
| |
| reproduceRaw | back to summary |
|---|---|
| public void reproduceRaw(OutputStream out) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| endOfFirstLine | back to summary |
|---|---|
| pack-priv int endOfFirstLine | |
| endOfSection | back to summary |
|---|---|
| pack-priv int endOfSection | |
| startOfNext | back to summary |
|---|---|
| pack-priv int startOfNext | |
| Position | back to summary |
|---|---|
| pack-priv Position() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private boolean | isProperlySectionDelimited()
Returns |
| length | back to summary |
|---|---|
| pack-priv int length | |
| lengthWithBlankLine | back to summary |
|---|---|
| pack-priv int lengthWithBlankLine | |
| offset | back to summary |
|---|---|
| pack-priv int offset | |
| rawBytes | back to summary |
|---|---|
| pack-priv byte[] rawBytes | |
| Section | back to summary |
|---|---|
| public Section(int offset, int length, int lengthWithBlankLine, byte[] rawBytes) | |
| doOldStyle | back to summary |
|---|---|
| private static void doOldStyle(MessageDigest md, byte[] bytes, int offset, int length) | |
| isProperlySectionDelimited | back to summary |
|---|---|
| private boolean isProperlySectionDelimited() Returns | |