| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private CountingOutputStream[] | |
| private final Map | |
| private AES256Options | |
| private final SeekableByteChannel | |
| private final CRC32 | |
| private Iterable | |
| private final CRC32 | |
| private CountingOutputStream | |
| private long | |
| private final List | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SevenZOutputFile(final File
the file to write to fileName, final char[] optional password if the archive has to be encrypted password)Opens file to write a 7z archive to. |
| public | SevenZOutputFile(final SeekableByteChannel
the channel to write to channel)Prepares channel to write a 7z archive to. |
| public | SevenZOutputFile(final SeekableByteChannel
the channel to write to channel, final char[] optional password if the archive has to be encrypted password)Prepares channel to write a 7z archive to. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public SevenZArchiveEntry | Returns: the ArchiveEntry set up with details from the filefile to create an entry from inputFile, final String the name to use entryName)Creates an archive entry using the inputFile and entryName provided. |
| public SevenZArchiveEntry | Returns: the ArchiveEntry set up with details from the filepath to create an entry from inputPath, final String the name to use entryName, final LinkOption... options indicating how symbolic links are handled. options)Creates an archive entry using the inputPath and entryName provided. |
| private void | |
| public void | |
| private Iterable | |
| private OutputStream | |
| public void | putArchiveEntry(final ArchiveEntry
describes the entry archiveEntry)
Deprecated
Use
Records an archive entry to add.
putArchiveEntry(SevenZArchiveEntry).
|
| public void | putArchiveEntry(final SevenZArchiveEntry
describes the entry archiveEntry)Records an archive entry to add. |
| private static <T> Iterable | |
| public void | setContentCompression(final SevenZMethod
the default compression method method)Sets the default compression method to use for entry contents - the default is LZMA2. |
| public void | setContentMethods(final Iterable<? extends SevenZMethodConfiguration>
the default (compression) methods methods)Sets the default (compression) methods to use for entry contents - the default is LZMA2. |
| private CountingOutputStream | |
| public void | |
| public void | write(final byte[]
The byte array to be written. b, final int offset into the array to start writing from off, final int number of bytes to write len)Writes part of a byte array to the current archive entry. |
| public void | write(final InputStream
the data source. inputStream)Writes all of the given input stream to the current archive entry. |
| public void | |
| public void | write(final Path
the data source. path, final OpenOption... options specifying how the file is opened. options)Writes all of the given input stream to the current archive entry. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| additionalCountingStreams | back to summary |
|---|---|
| private CountingOutputStream[] additionalCountingStreams | |
| additionalSizes | back to summary |
|---|---|
| private final Map<SevenZArchiveEntry, long[]> additionalSizes | |
| aes256Options | back to summary |
|---|---|
| private AES256Options aes256Options | |
| channel | back to summary |
|---|---|
| private final SeekableByteChannel channel | |
| compressedCrc32 | back to summary |
|---|---|
| private final CRC32 compressedCrc32 | |
| contentMethods | back to summary |
|---|---|
| private Iterable<? extends SevenZMethodConfiguration> contentMethods | |
| crc32 | back to summary |
|---|---|
| private final CRC32 crc32 | |
| currentOutputStream | back to summary |
|---|---|
| private CountingOutputStream currentOutputStream | |
| fileBytesWritten | back to summary |
|---|---|
| private long fileBytesWritten | |
| files | back to summary |
|---|---|
| private final List<SevenZArchiveEntry> files | |
| finished | back to summary |
|---|---|
| private boolean finished | |
| numNonEmptyStreams | back to summary |
|---|---|
| private int numNonEmptyStreams | |
| SevenZOutputFile | back to summary |
|---|---|
| public SevenZOutputFile(final File fileName) throws IOException Opens file to write a 7z archive to.
| |
| SevenZOutputFile | back to summary |
|---|---|
| public SevenZOutputFile(final File fileName, final char[] password) throws IOException Opens file to write a 7z archive to.
| |
| SevenZOutputFile | back to summary |
|---|---|
| public SevenZOutputFile(final SeekableByteChannel channel) throws IOException Prepares channel to write a 7z archive to.
| |
| SevenZOutputFile | back to summary |
|---|---|
| public SevenZOutputFile(final SeekableByteChannel channel, final char[] password) throws IOException Prepares channel to write a 7z archive to.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Closes the archive, calling
| |
| closeArchiveEntry | back to summary |
|---|---|
| public void closeArchiveEntry() throws IOException Closes the archive entry.
| |
| createArchiveEntry | back to summary |
|---|---|
| public SevenZArchiveEntry createArchiveEntry(final File inputFile, final String entryName) Creates an archive entry using the inputFile and entryName provided.
| |
| createArchiveEntry | back to summary |
|---|---|
| public SevenZArchiveEntry createArchiveEntry(final Path inputPath, final String entryName, final LinkOption... options) throws IOException Creates an archive entry using the inputPath and entryName provided.
| |
| fillDates | back to summary |
|---|---|
| private void fillDates(final Path inputPath, final SevenZArchiveEntry entry, final LinkOption... options) throws IOException | |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Finishes the addition of entries to this archive, without closing it.
| |
| getContentMethods | back to summary |
|---|---|
| private Iterable | |
| getCurrentOutputStream | back to summary |
|---|---|
| private OutputStream getCurrentOutputStream() throws IOException | |
| putArchiveEntry | back to summary |
|---|---|
| public void putArchiveEntry(final ArchiveEntry archiveEntry)
Deprecated Records an archive entry to add.
The caller must then write the content to the archive and call
| |
| putArchiveEntry | back to summary |
|---|---|
| public void putArchiveEntry(final SevenZArchiveEntry archiveEntry) Records an archive entry to add.
The caller must then write the content to the archive and call
| |
| reverse | back to summary |
|---|---|
| private static <T> Iterable | |
| setContentCompression | back to summary |
|---|---|
| public void setContentCompression(final SevenZMethod method) Sets the default compression method to use for entry contents - the default is LZMA2.
Currently only
This is a short form for passing a single-element iterable to
| |
| setContentMethods | back to summary |
|---|---|
| public void setContentMethods(final Iterable<? extends SevenZMethodConfiguration> methods) Sets the default (compression) methods to use for entry contents - the default is LZMA2.
Currently only The methods will be consulted in iteration order to create the final output.
| |
| setupFileOutputStream | back to summary |
|---|---|
| private CountingOutputStream setupFileOutputStream() throws IOException | |
| write | back to summary |
|---|---|
| public void write(final byte[] b) throws IOException Writes a byte array to the current archive entry.
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Writes part of a byte array to the current archive entry.
| |
| write | back to summary |
|---|---|
| public void write(final InputStream inputStream) throws IOException Writes all of the given input stream to the current archive entry.
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Writes a byte to the current archive entry.
| |
| write | back to summary |
|---|---|
| public void write(final Path path, final OpenOption... options) throws IOException Writes all of the given input stream to the current archive entry.
| |
| writeBits | back to summary |
|---|---|
| private void writeBits(final DataOutput header, final BitSet bits, final int length) throws IOException | |
| writeFileAntiItems | back to summary |
|---|---|
| private void writeFileAntiItems(final DataOutput header) throws IOException | |
| writeFileATimes | back to summary |
|---|---|
| private void writeFileATimes(final DataOutput header) throws IOException | |
| writeFileCTimes | back to summary |
|---|---|
| private void writeFileCTimes(final DataOutput header) throws IOException | |
| writeFileEmptyFiles | back to summary |
|---|---|
| private void writeFileEmptyFiles(final DataOutput header) throws IOException | |
| writeFileEmptyStreams | back to summary |
|---|---|
| private void writeFileEmptyStreams(final DataOutput header) throws IOException | |
| writeFileMTimes | back to summary |
|---|---|
| private void writeFileMTimes(final DataOutput header) throws IOException | |
| writeFileNames | back to summary |
|---|---|
| private void writeFileNames(final DataOutput header) throws IOException | |
| writeFilesInfo | back to summary |
|---|---|
| private void writeFilesInfo(final DataOutput header) throws IOException | |
| writeFileWindowsAttributes | back to summary |
|---|---|
| private void writeFileWindowsAttributes(final DataOutput header) throws IOException | |
| writeFolder | back to summary |
|---|---|
| private void writeFolder(final DataOutput header, final SevenZArchiveEntry entry) throws IOException | |
| writeHeader | back to summary |
|---|---|
| private void writeHeader(final DataOutput header) throws IOException | |
| writePackInfo | back to summary |
|---|---|
| private void writePackInfo(final DataOutput header) throws IOException | |
| writeSingleCodec | back to summary |
|---|---|
| private void writeSingleCodec(final SevenZMethodConfiguration m, final OutputStream bos) throws IOException | |
| writeStreamsInfo | back to summary |
|---|---|
| private void writeStreamsInfo(final DataOutput header) throws IOException | |
| writeSubStreamsInfo | back to summary |
|---|---|
| private void writeSubStreamsInfo(final DataOutput header) throws IOException | |
| writeUint64 | back to summary |
|---|---|
| private void writeUint64(final DataOutput header, long value) throws IOException | |
| writeUnpackInfo | back to summary |
|---|---|
| private void writeUnpackInfo(final DataOutput header) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| public void | write(final byte[]
the data. b)Overrides java. b.length bytes from the specified byte array
to this output stream.
|
| public void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(final int
the b)byte.Implements abstract java. |
| BUF_SIZE | back to summary |
|---|---|
| private static final int BUF_SIZE | |
| buffer | back to summary |
|---|---|
| private final ByteBuffer buffer | |
| OutputStreamWrapper | back to summary |
|---|---|
| private OutputStreamWrapper() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |