ArchiveInputStream type.
ArchiveOutputStream type.
ArchiveEntry type, must be compatible between the input I and output O stream types.
| Modifier and Type | Class and Description |
|---|---|
| private static interface | ChangeSetPerformer.ArchiveEntryIterator<E extends ArchiveEntry>
Abstracts getting entries and streams for archive entries. |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public | ChangeSetPerformer(final ChangeSet<E>
the ChangeSet which operations are used for performing changeSet)Constructs a ChangeSetPerformer with the changes from this ChangeSet |
| Modifier and Type | Method and Description |
|---|---|
| private void | copyStream(final InputStream
the stream to read the data from inputStream, final O the stream to write the data to outputStream, final E the entry to write archiveEntry)Copies the ArchiveEntry to the Output stream |
| private boolean | Returns: true, if this entry has a deletion change later, false otherwisethe entry to check entry)Checks if an ArchiveEntry is deleted later in the ChangeSet. |
| private ChangeSetResults | Returns: the results of this operationthe entries to perform the changes on entryIterator,the resulting OutputStream with all modifications outputStream)Performs all changes collected in this ChangeSet on the input entries and streams the result to the output stream. |
| public ChangeSetResults | Returns: the results of this operationthe InputStream to perform the changes on inputStream, final O the resulting OutputStream with all modifications outputStream)Performs all changes collected in this ChangeSet on the input stream and streams the result to the output stream. |
| public ChangeSetResults |
| changes | back to summary |
|---|---|
| private final Set<Change<E>> changes | |
| ChangeSetPerformer | back to summary |
|---|---|
| public ChangeSetPerformer(final ChangeSet<E> changeSet) Constructs a ChangeSetPerformer with the changes from this ChangeSet
| |
| copyStream | back to summary |
|---|---|
| private void copyStream(final InputStream inputStream, final O outputStream, final E archiveEntry) throws IOException Copies the ArchiveEntry to the Output stream
| |
| isDeletedLater | back to summary |
|---|---|
| private boolean isDeletedLater(final Set<Change<E>> workingSet, final E entry) Checks if an ArchiveEntry is deleted later in the ChangeSet. This is necessary if a file is added with this ChangeSet, but later became deleted in the same set.
| |
| perform | back to summary |
|---|---|
| private ChangeSetResults perform(final ChangeSetPerformer. Performs all changes collected in this ChangeSet on the input entries and streams the result to the output stream. This method finishes the stream, no other entries should be added after that.
| |
| perform | back to summary |
|---|---|
| public ChangeSetResults perform(final I inputStream, final O outputStream) throws IOException Performs all changes collected in this ChangeSet on the input stream and streams the result to the output stream. Perform may be called more than once. This method finishes the stream, no other entries should be added after that.
| |
| perform | back to summary |
|---|---|
| public ChangeSetResults perform(final ZipFile zipFile, final O outputStream) throws IOException Performs all changes collected in this ChangeSet on the ZipFile and streams the result to the output stream. Perform may be called more than once. This method finishes the stream, no other entries should be added after that.
| |
Iterator#hasNext is not allowed to throw exceptions that's why we can't use Iterator<ArchiveEntry> directly - otherwise we'd need to convert exceptions thrown in ArchiveInputStream#getNextEntry.
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | |
| public boolean | |
| public E |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() throws IOException | |
| next | back to summary |
|---|---|
| public E next() | |
| Modifier and Type | Field and Description |
|---|---|
| private final ArchiveInputStream | |
| private E |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | |
| public boolean | |
| public E |
| inputStream | back to summary |
|---|---|
| private final ArchiveInputStream<E> inputStream | |
| next | back to summary |
|---|---|
| private E next | |
| ArchiveInputStreamIterator | back to summary |
|---|---|
| pack-priv ArchiveInputStreamIterator(final ArchiveInputStream<E> inputStream) | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Implements org.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() throws IOException Implements org.
| |
| next | back to summary |
|---|---|
| public E next() Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private ZipArchiveEntry | |
| private final Enumeration | |
| private final ZipFile |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | |
| public boolean | |
| public ZipArchiveEntry |
| currentEntry | back to summary |
|---|---|
| private ZipArchiveEntry currentEntry | |
| nestedEnumeration | back to summary |
|---|---|
| private final Enumeration<ZipArchiveEntry> nestedEnumeration | |
| zipFile | back to summary |
|---|---|
| private final ZipFile zipFile | |
| ZipFileIterator | back to summary |
|---|---|
| pack-priv ZipFileIterator(final ZipFile zipFile) | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements org.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements org.
| |
| next | back to summary |
|---|---|
| public ZipArchiveEntry next() Implements org.
| |