| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private boolean | finished
Indicates if this archive is finished |
| private boolean | |
| public static final int | LONGFILE_BSD
BSD ar extensions are used to store long file names in the archive. |
| public static final int | LONGFILE_ERROR
Fail if a long file name is required in the archive. |
| private int | |
| private final OutputStream | |
| private ArArchiveEntry |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | closeArchiveEntry()
Implements abstract org. |
| public ArArchiveEntry | createArchiveEntry(final File
the file to create the entry from inputFile, final String name to use for the entry entryName)Implements abstract org. |
| public ArArchiveEntry | createArchiveEntry(final Path
the file to create the entry from inputPath, final String name to use for the entry entryName, final LinkOption... options indicating how symbolic links are handled. options)Overrides org. |
| private long | |
| public void | finish()
Implements abstract org. |
| public void | putArchiveEntry(final ArArchiveEntry
describes the entry entry)Implements abstract org. |
| public void | |
| 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.
|
| private long | |
| private void | |
| private void |
| entryOffset | back to summary |
|---|---|
| private long entryOffset | |
| finished | back to summary |
|---|---|
| private boolean finished Indicates if this archive is finished | |
| haveUnclosedEntry | back to summary |
|---|---|
| private boolean haveUnclosedEntry | |
| LONGFILE_BSD | back to summary |
|---|---|
| public static final int LONGFILE_BSD BSD ar extensions are used to store long file names in the archive. | |
| LONGFILE_ERROR | back to summary |
|---|---|
| public static final int LONGFILE_ERROR Fail if a long file name is required in the archive. | |
| longFileMode | back to summary |
|---|---|
| private int longFileMode | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| prevEntry | back to summary |
|---|---|
| private ArArchiveEntry prevEntry | |
| ArArchiveOutputStream | back to summary |
|---|---|
| public ArArchiveOutputStream(final OutputStream out) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Calls finish if necessary, and then closes the OutputStream
| |
| closeArchiveEntry | back to summary |
|---|---|
| public void closeArchiveEntry() throws IOException Implements abstract org. Doc from org. Closes the archive entry, writing any trailer information that may be required.
| |
| createArchiveEntry | back to summary |
|---|---|
| public ArArchiveEntry createArchiveEntry(final File inputFile, final String entryName) throws IOException Implements abstract org. Doc from org. Creates an archive entry using the inputFile and entryName provided.
| |
| createArchiveEntry | back to summary |
|---|---|
| public ArArchiveEntry createArchiveEntry(final Path inputPath, final String entryName, final LinkOption... options) throws IOException Overrides org. Doc from org. Creates an archive entry using the inputPath and entryName provided. The default implementation calls simply delegates as: return createArchiveEntry(inputFile.toFile(), entryName); Subclasses should override this method.
| |
| fill | back to summary |
|---|---|
| private long fill(final long pOffset, final long pNewOffset, final char pFill) throws IOException | |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Implements abstract org. Doc from org. Finishes the addition of entries to this stream, without closing it. Additional data can be written, if the format supports it.
| |
| putArchiveEntry | back to summary |
|---|---|
| public void putArchiveEntry(final ArArchiveEntry entry) throws IOException Implements abstract org. Doc from org. Writes the headers for an archive entry to the output stream. The caller must then write the content to the stream and call
| |
| setLongFileMode | back to summary |
|---|---|
| public void setLongFileMode(final int longFileMode) Sets the long file mode. This can be LONGFILE_ERROR(0) or LONGFILE_BSD(1). This specifies the treatment of long file names (names >= 16). Default is LONGFILE_ERROR.
| |
| 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 |
|---|---|
| private long write(final String data) throws IOException | |
| writeArchiveHeader | back to summary |
|---|---|
| private void writeArchiveHeader() throws IOException | |
| writeEntryHeader | back to summary |
|---|---|
| private void writeEntryHeader(final ArArchiveEntry entry) throws IOException | |