/** * Creates a DataEntryWriter that can write to the given class path entries. * * @param classPath the output class path. * @param fromIndex the start index in the class path. * @param toIndex the end index in the class path. * @return a DataEntryWriter for writing to the given class path entries. */ public DataEntryWriter createDataEntryWriter(ClassPath classPath, int fromIndex, int toIndex) { DataEntryWriter writer = null; // Create a chain of writers, one for each class path entry. for (int index = toIndex - 1; index >= fromIndex; index--) { ClassPathEntry entry = classPath.get(index); writer = createClassPathEntryWriter(entry, writer); } return writer; }
/** * Creates a DataEntryWriter that can write to the given class path entries. * * @param classPath the output class path. * @param fromIndex the start index in the class path. * @param toIndex the end index in the class path. * @return a DataEntryWriter for writing to the given class path entries. */ public DataEntryWriter createDataEntryWriter(ClassPath classPath, int fromIndex, int toIndex) { DataEntryWriter writer = null; // Create a chain of writers, one for each class path entry. for (int index = toIndex - 1; index >= fromIndex; index--) { ClassPathEntry entry = classPath.get(index); writer = createClassPathEntryWriter(entry, writer); } return writer; }
/** * Creates a DataEntryWriter that can write to the given class path entries. * * @param classPath the output class path. * @param fromIndex the start index in the class path. * @param toIndex the end index in the class path. * @return a DataEntryWriter for writing to the given class path entries. */ public static DataEntryWriter createDataEntryWriter(ClassPath classPath, int fromIndex, int toIndex) { DataEntryWriter writer = null; // Create a chain of writers, one for each class path entry. for (int index = toIndex - 1; index >= fromIndex; index--) { ClassPathEntry entry = classPath.get(index); writer = createClassPathEntryWriter(entry, writer); } return writer; }
/** * Creates a DataEntryWriter that can write to the given class path entries. * * @param classPath the output class path. * @param fromIndex the start index in the class path. * @param toIndex the end index in the class path. * @return a DataEntryWriter for writing to the given class path entries. */ public DataEntryWriter createDataEntryWriter(ClassPath classPath, int fromIndex, int toIndex) { DataEntryWriter writer = null; // Create a chain of writers, one for each class path entry. for (int index = toIndex - 1; index >= fromIndex; index--) { ClassPathEntry entry = classPath.get(index); writer = createClassPathEntryWriter(entry, writer); } return writer; }