1 21 package proguard.io; 22 23 import java.io.*; 24 25 31 public class ParentDataEntryWriter implements DataEntryWriter 32 { 33 private DataEntryWriter dataEntryWriter; 34 35 36 41 public ParentDataEntryWriter(DataEntryWriter dataEntryWriter) 42 { 43 this.dataEntryWriter = dataEntryWriter; 44 } 45 46 47 49 public OutputStream getOutputStream(DataEntry dataEntry) throws IOException 50 { 51 return getOutputStream(dataEntry, null); 52 } 53 54 55 public OutputStream getOutputStream(DataEntry dataEntry, 56 Finisher finisher) throws IOException 57 { 58 return dataEntryWriter.getOutputStream(dataEntry.getParent(), 59 finisher); 60 } 61 62 63 public void close() throws IOException 64 { 65 dataEntryWriter.close(); 66 } 67 } 68 | Popular Tags |