java.util.jar
public
class
java.util.jar.JarOutputStream
The JarOutputStream is used to output data in JarFile format.
Summary
CENATT,
CENATX,
CENCOM,
CENCRC,
CENDSK,
CENEXT,
CENFLG,
CENHDR,
CENHOW,
CENLEN,
CENNAM,
CENOFF,
CENSIG,
CENSIZ,
CENTIM,
CENVEM,
CENVER,
DEFLATED,
ENDCOM,
ENDHDR,
ENDOFF,
ENDSIG,
ENDSIZ,
ENDSUB,
ENDTOT,
EXTCRC,
EXTHDR,
EXTLEN,
EXTSIG,
EXTSIZ,
LOCCRC,
LOCEXT,
LOCFLG,
LOCHDR,
LOCHOW,
LOCLEN,
LOCNAM,
LOCSIG,
LOCSIZ,
LOCTIM,
LOCVER,
STORED
Public Constructors
Public Methods
|
|
|
|
|
void |
close() |
|
|
|
|
|
void |
flush() |
|
|
|
|
|
void |
write(byte[] buffer) |
abstract |
|
|
|
|
void |
write(int oneByte) |
|
|
|
|
|
void |
write(byte[] buffer, int offset, int count) |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Constructs a new JarOutputStream using os as the underlying stream.
Manifest information for the JarFile to be written is obtained from the
parameter Manifest, mf.
Parameters
os
| The OutputStream to write to |
mf
| The Manifest to output for this Jar. |
Throws
IOException
| If an error occurs creating the JarOutputStream
|
public
JarOutputStream(OutputStream os)
Constructs a new JarOutputStream using os as the underlying stream.
Parameters
os
| The OutputStream to write to |
Throws
IOException
| If an error occurs creating the JarOutputStream
|
Public Methods
public
void
putNextEntry(ZipEntry ze)
Writes the specified entry to the underlying stream. The previous entry
is closed if it is still open.