|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.io.CascadingDataEntryWriter
This DataEntryWriter delegates to a given DataEntryWriter, or failing that, to another given DataEntryWriter.
| Constructor Summary | |
CascadingDataEntryWriter(DataEntryWriter dataEntryWriter1,
DataEntryWriter dataEntryWriter2)
Creates a new FilteredDataEntryWriter. |
|
| Method Summary | |
void |
close()
Finishes writing all data entries. |
OutputStream |
getOutputStream(DataEntry dataEntry)
Returns an output stream for writing data. |
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 CascadingDataEntryWriter(DataEntryWriter dataEntryWriter1,
DataEntryWriter dataEntryWriter2)
dataEntryWriter1 - the DataEntryWriter to which the writing will be
delegated first.dataEntryWriter2 - the DataEntryWriter to which the writing will be
delegated, if the first one can't provide an
output stream.| Method Detail |
public OutputStream getOutputStream(DataEntry dataEntry)
throws 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.
IOException
public OutputStream getOutputStream(DataEntry dataEntry,
Finisher finisher)
throws 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.
IOException
public void close()
throws IOException
DataEntryWriter
close in interface DataEntryWriterIOException
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||