public class UniqueDataEntryWriter
extends java.lang.Object
implements proguard.io.DataEntryWriter
DataEntryWriter, but a DataEntry can be written
at most one time (uniqueness is based on DataEntry.getName().| Constructor and Description |
|---|
UniqueDataEntryWriter(proguard.io.DataEntryWriter dataEntryWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
createDirectory(proguard.io.DataEntry dataEntry) |
java.io.OutputStream |
createOutputStream(proguard.io.DataEntry dataEntry) |
void |
println(java.io.PrintWriter pw,
java.lang.String prefix) |
boolean |
sameOutputStream(proguard.io.DataEntry dataEntry1,
proguard.io.DataEntry dataEntry2) |
public UniqueDataEntryWriter(proguard.io.DataEntryWriter dataEntryWriter)
public boolean createDirectory(proguard.io.DataEntry dataEntry)
throws java.io.IOException
createDirectory in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic boolean sameOutputStream(proguard.io.DataEntry dataEntry1,
proguard.io.DataEntry dataEntry2)
throws java.io.IOException
sameOutputStream in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic java.io.OutputStream createOutputStream(proguard.io.DataEntry dataEntry)
throws java.io.IOException
createOutputStream in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic void println(java.io.PrintWriter pw,
java.lang.String prefix)
println in interface proguard.io.DataEntryWriter