pack() is called, to pack the Jar file into a pack200 archive.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private static final byte[] | |
| private JarFile | |
| private final JarInputStream | |
| private final PackingOptions | |
| private final OutputStream |
| Access | Constructor and Description |
|---|---|
| public | Archive(final JarFile
- the input file jarFile, OutputStream TODO outputStream, PackingOptions - packing options (if null then defaults are used) options)Creates an Archive with the given input file and a stream for the output |
| public | Archive(final JarInputStream
TODO inputStream, OutputStream TODO outputStream, PackingOptions packing options (if null then defaults are used) options)Creates an Archive with streams for the input and output. |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | addJarEntry(final Archive.
|
| private void | |
| private void | |
| private long | |
| public void | |
| private List |
| currentSegmentSize | back to summary |
|---|---|
| private long currentSegmentSize | |
| EMPTY_BYTE_ARRAY | back to summary |
|---|---|
| private static final byte[] EMPTY_BYTE_ARRAY | |
| jarFile | back to summary |
|---|---|
| private JarFile jarFile | |
| jarInputStream | back to summary |
|---|---|
| private final JarInputStream jarInputStream | |
| options | back to summary |
|---|---|
| private final PackingOptions options | |
| outputStream | back to summary |
|---|---|
| private final OutputStream outputStream | |
| Archive | back to summary |
|---|---|
| public Archive(final JarFile jarFile, OutputStream outputStream, PackingOptions options) throws IOException Creates an Archive with the given input file and a stream for the output
| |
| Archive | back to summary |
|---|---|
| public Archive(final JarInputStream inputStream, OutputStream outputStream, PackingOptions options) throws IOException Creates an Archive with streams for the input and output.
| |
| addJarEntry | back to summary |
|---|---|
| private boolean addJarEntry(final Archive. | |
| doNormalPack | back to summary |
|---|---|
| private void doNormalPack() throws IOException, Pack200Exception | |
| doZeroEffortPack | back to summary |
|---|---|
| private void doZeroEffortPack() throws IOException | |
| estimateSize | back to summary |
|---|---|
| private long estimateSize(final Archive. | |
| pack | back to summary |
|---|---|
| public void pack() throws Pack200Exception, IOException Packs the archive.
| |
| splitIntoSegments | back to summary |
|---|---|
| private List | |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private final boolean | |
| private final boolean | |
| private final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public long | |
| public String | |
| public boolean | |
| public boolean | |
| public void | |
| public String |
| contents | back to summary |
|---|---|
| private byte[] contents | |
| deflateHint | back to summary |
|---|---|
| private final boolean deflateHint | |
| isDirectory | back to summary |
|---|---|
| private final boolean isDirectory | |
| modtime | back to summary |
|---|---|
| private final long modtime | |
| name | back to summary |
|---|---|
| private final String name | |
| PackingFile | back to summary |
|---|---|
| pack-priv PackingFile(final byte[] bytes, final JarEntry jarEntry) | |
| PackingFile | back to summary |
|---|---|
| pack-priv PackingFile(final String name, final byte[] contents, final long modtime) | |
| getContents | back to summary |
|---|---|
| public byte[] getContents() | |
| getModtime | back to summary |
|---|---|
| public long getModtime() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| isDefalteHint | back to summary |
|---|---|
| public boolean isDefalteHint() | |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() | |
| setContents | back to summary |
|---|---|
| public void setContents(final byte[] contents) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final List | |
| private final List | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| public int | |
| public int | |
| public List | |
| public List | |
| public int |
| byteAmount | back to summary |
|---|---|
| private int byteAmount | |
| classList | back to summary |
|---|---|
| private final List<Pack200ClassReader> classList | |
| fileList | back to summary |
|---|---|
| private final List<Archive. | |
| packedByteAmount | back to summary |
|---|---|
| private int packedByteAmount | |
| SegmentUnit | back to summary |
|---|---|
| pack-priv SegmentUnit(final List<Pack200ClassReader> classes, final List<Archive. | |
| addPackedByteAmount | back to summary |
|---|---|
| public void addPackedByteAmount(final int amount) | |
| classListSize | back to summary |
|---|---|
| public int classListSize() | |
| fileListSize | back to summary |
|---|---|
| public int fileListSize() | |
| getByteAmount | back to summary |
|---|---|
| public int getByteAmount() | |
| getClassList | back to summary |
|---|---|
| public List | |
| getFileList | back to summary |
|---|---|
| public List | |
| getPackedByteAmount | back to summary |
|---|---|
| public int getPackedByteAmount() | |