public class JarArchiveOutputStream extends ZipArchiveOutputStream
ZipArchiveOutputStream.UnicodeExtraFieldPolicy
def, DEFAULT_COMPRESSION, DEFLATED, EFS_FLAG, finished, STORED
Constructor and Description |
---|
JarArchiveOutputStream(OutputStream out) |
JarArchiveOutputStream(OutputStream out,
String encoding)
Create and instance that wraps the output stream using the provided encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
putArchiveEntry(ArchiveEntry ze)
Writes the headers for an archive entry to the output stream.
|
addRawArchiveEntry, canWriteEntryData, close, closeArchiveEntry, createArchiveEntry, deflate, finish, flush, getEncoding, isSeekable, setComment, setCreateUnicodeExtraFields, setEncoding, setFallbackToUTF8, setLevel, setMethod, setUseLanguageEncodingFlag, setUseZip64, write, writeCentralDirectoryEnd, writeCentralFileHeader, writeDataDescriptor, writeLocalFileHeader, writeOut, writeOut, writeZip64CentralDirectory
count, count, getBytesWritten, getCount, write
write
public JarArchiveOutputStream(OutputStream out)
public JarArchiveOutputStream(OutputStream out, String encoding)
out
- the output stream to wrapencoding
- the encoding to use. Use null for the platform default.public void putArchiveEntry(ArchiveEntry ze) throws IOException
ZipArchiveOutputStream
ArchiveOutputStream.closeArchiveEntry()
to complete the process.putArchiveEntry
in class ZipArchiveOutputStream
ze
- describes the entryIOException
- if an I/O error occursCopyright © 2016 The Apache Software Foundation. All rights reserved.