|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.io.JarWriter
public class JarWriter
This DataEntryWriter sends data entries to a given jar/zip file. The manifest and comment properties can optionally be set.
| Constructor Summary | |
|---|---|
JarWriter(DataEntryWriter dataEntryWriter)
Creates a new JarWriter without manifest or comment. |
|
JarWriter(DataEntryWriter dataEntryWriter,
java.util.jar.Manifest manifest,
java.lang.String comment)
Creates a new JarWriter. |
|
| Method Summary | |
|---|---|
void |
close()
Finishes writing all data entries. |
boolean |
createDirectory(DataEntry dataEntry)
Creates a directory. |
void |
finish()
Finishes an output stream right before it is closed. |
java.io.OutputStream |
getOutputStream(DataEntry dataEntry)
Returns an output stream for writing data. |
java.io.OutputStream |
getOutputStream(DataEntry dataEntry,
Finisher finisher)
Returns an output stream for writing data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JarWriter(DataEntryWriter dataEntryWriter)
public JarWriter(DataEntryWriter dataEntryWriter,
java.util.jar.Manifest manifest,
java.lang.String comment)
| Method Detail |
|---|
public boolean createDirectory(DataEntry dataEntry)
throws java.io.IOException
DataEntryWriter
createDirectory in interface DataEntryWriterdataEntry - the data entry for which the directory is to be created.
java.io.IOException
public java.io.OutputStream getOutputStream(DataEntry dataEntry)
throws java.io.IOException
DataEntryWriter
getOutputStream in interface DataEntryWriterdataEntry - the data entry for which the output stream is to be created.
null to indicate
that the data entry should not be written.
java.io.IOException
public java.io.OutputStream getOutputStream(DataEntry dataEntry,
Finisher finisher)
throws java.io.IOException
DataEntryWriter
getOutputStream in interface DataEntryWriterdataEntry - the data entry for which the output stream is to be created.finisher - the optional finisher that will be called before this
class closes the output stream (at some later point in
time) that will be returned (now).
null to indicate
that the data entry should not be written.
java.io.IOException
public void finish()
throws java.io.IOException
Finisher
finish in interface Finisherjava.io.IOException
public void close()
throws java.io.IOException
DataEntryWriter
close in interface DataEntryWriterjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||