Lines Matching defs:files

42  * This class implements a simple utility for creating files in the JAR
52 String[] files;
60 // All files need to be added/updated.
85 * timestamping extracted files with the time at which they are extracted.
200 expand(null, files, false);
222 expand(null, files, true);
243 replaceFSC(files);
245 list(fname, files);
249 list(new BufferedInputStream(in), files);
255 replaceFSC(files);
256 if (fname != null && files != null) {
257 extract(fname, files);
263 extract(new BufferedInputStream(in), files);
269 genIndex(rootjar, files);
357 // do not increase the counter, files will contain rootjar
406 files = new String[k];
407 System.arraycopy(nameBuf, 0, files, 0, k);
426 * Expands list of files to process into full list of all files that
429 void expand(File dir, String[] files, boolean isUpdate) {
430 if (files == null) {
433 for (int i = 0; i < files.length; i++) {
436 f = new File(files[i]);
438 f = new File(dir, files[i]);
581 } else { // replace with the new files
590 // add the remaining new files
840 void replaceFSC(String files[]) {
841 if (files != null) {
842 for (int i = 0; i < files.length; i++) {
843 files[i] = files[i].replace(File.separatorChar, '/');
869 void extract(InputStream in, String files[]) throws IOException {
876 if (files == null) {
880 for (String file : files) {
899 void extract(String fname, String files[]) throws IOException {
906 if (files == null) {
910 for (String file : files) {
985 void list(InputStream in, String files[]) throws IOException {
996 printEntry(e, files);
1003 void list(String fname, String files[]) throws IOException {
1007 printEntry(zes.nextElement(), files);
1042 List<String> files = new ArrayList<String>();
1043 files.add(jar);
1068 files.addAll(getJarPath(ajar));
1077 return files;
1083 void genIndex(String rootjar, String[] files) throws IOException {
1088 if (njars == 1 && files != null) {
1091 for (int i = 0; i < files.length; i++) {
1092 jars.addAll(getJarPath(files[i]));
1104 void printEntry(ZipEntry e, String[] files) throws IOException {
1105 if (files == null) {
1109 for (String file : files) {