|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.apache.commons.compress.archivers.ArchiveOutputStream
org.apache.commons.compress.archivers.ar.ArArchiveOutputStream
public class ArArchiveOutputStream
Implements the "ar" archive format as an output stream.
| Field Summary | |
|---|---|
static int |
LONGFILE_BSD
BSD ar extensions are used to store long file names in the archive. |
static int |
LONGFILE_ERROR
Fail if a long file name is required in the archive. |
| Constructor Summary | |
|---|---|
ArArchiveOutputStream(OutputStream pOut)
|
|
| Method Summary | |
|---|---|
void |
close()
Calls finish if necessary, and then closes the OutputStream |
void |
closeArchiveEntry()
Closes the archive entry, writing any trailer information that may be required. |
ArchiveEntry |
createArchiveEntry(File inputFile,
String entryName)
Create an archive entry using the inputFile and entryName provided. |
void |
finish()
Finishes the addition of entries to this stream, without closing it. |
void |
putArchiveEntry(ArchiveEntry pEntry)
Writes the headers for an archive entry to the output stream. |
void |
setLongFileMode(int longFileMode)
Set the long file mode. |
void |
write(byte[] b,
int off,
int len)
|
| Methods inherited from class org.apache.commons.compress.archivers.ArchiveOutputStream |
|---|
canWriteEntryData, count, count, getBytesWritten, getCount, write |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LONGFILE_ERROR
public static final int LONGFILE_BSD
| Constructor Detail |
|---|
public ArArchiveOutputStream(OutputStream pOut)
| Method Detail |
|---|
public void setLongFileMode(int longFileMode)
longFileMode - the mode to use
public void closeArchiveEntry()
throws IOException
closeArchiveEntry in class ArchiveOutputStreamIOException
public void putArchiveEntry(ArchiveEntry pEntry)
throws IOException
ArchiveOutputStream.closeArchiveEntry() to complete the process.
putArchiveEntry in class ArchiveOutputStreampEntry - describes the entry
IOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException
public ArchiveEntry createArchiveEntry(File inputFile,
String entryName)
throws IOException
createArchiveEntry in class ArchiveOutputStreamIOException
public void finish()
throws IOException
finish in class ArchiveOutputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||