Home
last modified time | relevance | path

Searched refs:dataEntry (Results 1 – 20 of 20) sorted by relevance

/external/proguard/src/proguard/io/
DJarWriter.java75 public boolean createDirectory(DataEntry dataEntry) throws IOException in createDirectory() argument
78 if (!prepareEntry(dataEntry)) in createDirectory()
87 String name = dataEntry.getName() + ClassConstants.PACKAGE_SEPARATOR; in createDirectory()
108 public OutputStream getOutputStream(DataEntry dataEntry) throws IOException in getOutputStream() argument
110 return getOutputStream(dataEntry, null); in getOutputStream()
114 public OutputStream getOutputStream(DataEntry dataEntry, in getOutputStream() argument
118 if (!prepareEntry(dataEntry)) in getOutputStream()
124 if (!dataEntry.equals(currentDataEntry)) in getOutputStream()
130 String name = dataEntry.getName(); in getOutputStream()
138 throw new IOException("Duplicate zip entry ["+dataEntry+"]"); in getOutputStream()
[all …]
DRenamedDataEntry.java33 private final DataEntry dataEntry; field in RenamedDataEntry
37 public RenamedDataEntry(DataEntry dataEntry, in RenamedDataEntry() argument
40 this.dataEntry = dataEntry; in RenamedDataEntry()
55 return dataEntry.isDirectory(); in isDirectory()
61 return dataEntry.getInputStream(); in getInputStream()
67 dataEntry.closeInputStream(); in closeInputStream()
73 return dataEntry.getParent(); in getParent()
81 return name + " == " + dataEntry; in toString()
DCascadingDataEntryWriter.java56 public boolean createDirectory(DataEntry dataEntry) throws IOException in createDirectory() argument
60 return dataEntryWriter1.createDirectory(dataEntry) || in createDirectory()
61 dataEntryWriter2.createDirectory(dataEntry); in createDirectory()
65 public OutputStream getOutputStream(DataEntry dataEntry) throws IOException in getOutputStream() argument
67 return getOutputStream(dataEntry, null); in getOutputStream()
71 public OutputStream getOutputStream(DataEntry dataEntry, in getOutputStream() argument
76 dataEntryWriter1.getOutputStream(dataEntry, finisher); in getOutputStream()
82 dataEntryWriter2.getOutputStream(dataEntry, finisher); in getOutputStream()
DDataEntryObfuscator.java63 public void read(DataEntry dataEntry) throws IOException in read() argument
66 dataEntryReader.read(renamedDataEntry(dataEntry)); in read()
73 private DataEntry renamedDataEntry(DataEntry dataEntry) in renamedDataEntry() argument
75 String dataEntryName = dataEntry.getName(); in renamedDataEntry()
107 return new RenamedDataEntry(dataEntry, newDataEntryName); in renamedDataEntry()
112 return dataEntry; in renamedDataEntry()
137 return new RenamedDataEntry(dataEntry, newDataEntryName); in renamedDataEntry()
142 return dataEntry; in renamedDataEntry()
148 return dataEntry; in renamedDataEntry()
DFilteredDataEntryWriter.java77 public boolean createDirectory(DataEntry dataEntry) throws IOException in createDirectory() argument
80 DataEntryWriter dataEntryWriter = dataEntryFilter.accepts(dataEntry) ? in createDirectory()
86 dataEntryWriter.createDirectory(dataEntry); in createDirectory()
90 public OutputStream getOutputStream(DataEntry dataEntry) throws IOException in getOutputStream() argument
92 return getOutputStream(dataEntry, null); in getOutputStream()
96 public OutputStream getOutputStream(DataEntry dataEntry, in getOutputStream() argument
100 DataEntryWriter dataEntryWriter = dataEntryFilter.accepts(dataEntry) ? in getOutputStream()
106 dataEntryWriter.getOutputStream(dataEntry, finisher) : in getOutputStream()
DDirectoryWriter.java58 public boolean createDirectory(DataEntry dataEntry) throws IOException in createDirectory() argument
67 File directory = getFile(dataEntry); in createDirectory()
78 public OutputStream getOutputStream(DataEntry dataEntry) throws IOException in getOutputStream() argument
80 return getOutputStream(dataEntry, null); in getOutputStream()
84 public OutputStream getOutputStream(DataEntry dataEntry, in getOutputStream() argument
87 File file = getFile(dataEntry); in getOutputStream()
134 private File getFile(DataEntry dataEntry) in getFile() argument
140 dataEntry.getName().replace(ClassConstants.PACKAGE_SEPARATOR, in getFile()
DParentDataEntryWriter.java50 public boolean createDirectory(DataEntry dataEntry) throws IOException in createDirectory() argument
52 return getOutputStream(dataEntry) != null; in createDirectory()
56 public OutputStream getOutputStream(DataEntry dataEntry) throws IOException in getOutputStream() argument
58 return getOutputStream(dataEntry, null); in getOutputStream()
62 public OutputStream getOutputStream(DataEntry dataEntry, in getOutputStream() argument
65 return dataEntryWriter.getOutputStream(dataEntry.getParent(), in getOutputStream()
DDataEntryRenamer.java76 public void read(DataEntry dataEntry) throws IOException in read() argument
78 String name = dataEntry.getName(); in read()
81 if (dataEntry.isDirectory() && in read()
91 if (dataEntry.isDirectory() && in read()
97 renamedDataEntryReader.read(new RenamedDataEntry(dataEntry, newName)); in read()
101 missingDataEntryReader.read(dataEntry); in read()
DClassReader.java71 public void read(DataEntry dataEntry) throws IOException in read() argument
76 InputStream inputStream = dataEntry.getInputStream(); in read()
98 …if (!dataEntry.getName().replace(File.pathSeparatorChar, ClassConstants.PACKAGE_SEPARATOR).equals(… in read()
102 …"Warning: class [" + dataEntry.getName() + "] unexpectedly contains class [" + ClassUtil.externalC… in read()
108 dataEntry.closeInputStream(); in read()
112 …throw (IOException)new IOException("Can't process class ["+dataEntry.getName()+"] ("+ex.getMessage… in read()
DClassRewriter.java51 public void read(DataEntry dataEntry) throws IOException in read() argument
53 String inputName = dataEntry.getName(); in read()
64dataEntry = new RenamedDataEntry(dataEntry, newClassName + ClassConstants.CLASS_FILE_EXTENSION); in read()
68 OutputStream outputStream = dataEntryWriter.getOutputStream(dataEntry); in read()
DDataEntryCopier.java51 public void read(DataEntry dataEntry) throws IOException in read() argument
55 if (dataEntry.isDirectory()) in read()
57 dataEntryWriter.createDirectory(dataEntry); in read()
62 OutputStream outputStream = dataEntryWriter.getOutputStream(dataEntry); in read()
65 InputStream inputStream = dataEntry.getInputStream(); in read()
75 dataEntry.closeInputStream(); in read()
82 …System.err.println("Warning: can't write resource [" + dataEntry.getName() + "] (" + ex.getMessage… in read()
86 …throw (IOException)new IOException("Can't write resource ["+dataEntry.getName()+"] ("+ex.getMessag… in read()
DJarReader.java48 public void read(DataEntry dataEntry) throws IOException in read() argument
50 ZipInputStream zipInputStream = new ZipInputStream(dataEntry.getInputStream()); in read()
65 dataEntryReader.read(new ZipDataEntry(dataEntry, in read()
72 dataEntry.closeInputStream(); in read()
DDataEntryDirectoryFilter.java34 public boolean accepts(DataEntry dataEntry) in accepts() argument
36 return dataEntry != null && dataEntry.isDirectory(); in accepts()
DDataEntryParentFilter.java47 public boolean accepts(DataEntry dataEntry) in accepts() argument
49 return dataEntry != null && dataEntryFilter.accepts(dataEntry.getParent()); in accepts()
DDataEntryNameFilter.java50 public boolean accepts(DataEntry dataEntry) in accepts() argument
52 return dataEntry != null && stringMatcher.matches(dataEntry.getName()); in accepts()
DDataEntryWriter.java40 public boolean createDirectory(DataEntry dataEntry) throws IOException; in createDirectory() argument
51 public OutputStream getOutputStream(DataEntry dataEntry) throws IOException; in getOutputStream() argument
65 public OutputStream getOutputStream(DataEntry dataEntry, in getOutputStream() argument
DFilteredDataEntryReader.java78 public void read(DataEntry dataEntry) in read() argument
81 DataEntryReader dataEntryReader = dataEntryFilter.accepts(dataEntry) ? in read()
87 dataEntryReader.read(dataEntry); in read()
DDataEntryFilter.java37 public boolean accepts(DataEntry dataEntry); in accepts() argument
DDataEntryReader.java37 public void read(DataEntry dataEntry) throws IOException; in read() argument
/external/icu/icu4c/source/common/
Duresbund.cpp1110 UResourceDataEntry *dataEntry = mainRes->fData; in init_resb_result() local
1125 r = dataEntry->fData.rootRes; in init_resb_result()
1128 r = res_findResource(&(dataEntry->fData), r, &myPath, &temp); in init_resb_result()
1130 …resB = init_resb_result(&(dataEntry->fData), r, temp, -1, dataEntry, result, noAlias+1, resB, stat… in init_resb_result()
1134 dataEntry = result->fData; in init_resb_result()
1140 dataEntry = dataEntry->fParent; in init_resb_result()
1143 } while(r == RES_BOGUS && dataEntry != NULL); in init_resb_result()
1856 UResourceDataEntry *dataEntry = resB->fData; in ures_getByKeyWithFallback() local
1861 … while(res == RES_BOGUS && dataEntry->fParent != NULL) { /* Otherwise, we'll look in parents */ in ures_getByKeyWithFallback()
1862 dataEntry = dataEntry->fParent; in ures_getByKeyWithFallback()
[all …]