1 21 package proguard.io; 22 23 import java.io.*; 24 25 31 public class RenamedDataEntry implements DataEntry 32 { 33 private DataEntry dataEntry; 34 private String name; 35 36 37 public RenamedDataEntry(DataEntry dataEntry, 38 String name) 39 { 40 this.dataEntry = dataEntry; 41 this.name = name; 42 } 43 44 45 47 public String getName() 48 { 49 return name; 50 } 51 52 53 public InputStream getInputStream() throws IOException 54 { 55 return dataEntry.getInputStream(); 56 } 57 58 59 public void closeInputStream() throws IOException 60 { 61 dataEntry.closeInputStream(); 62 } 63 64 65 public DataEntry getParent() 66 { 67 return dataEntry.getParent(); 68 } 69 70 71 73 public String toString() 74 { 75 return name + " == " + dataEntry; 76 } 77 } 78 | Popular Tags |