public String getOriginalName() { return getName(); }
/** * Reads the given subdirectory recursively, applying the given DataEntryReader * to all files that are encountered. */ private void readFiles(File file, DataEntryReader dataEntryReader) throws IOException { // Pass the file data entry to the reader. dataEntryReader.read(new FileDataEntry(directory, file)); if (file.isDirectory()) { // Recurse into the subdirectory. File[] files = file.listFiles(); for (int index = 0; index < files.length; index++) { readFiles(files[index], dataEntryReader); } } } }
/** * Returns the complete file, including its directory. */ public File getFile() { return file.equals(directory) ? file : new File(directory, getRelativeFilePath()); }
/** * Reads the given subdirectory recursively, applying the given DataEntryReader * to all files that are encountered. */ private void readFiles(File file, DataEntryReader dataEntryReader) throws IOException { // Pass the file data entry to the reader. dataEntryReader.read(new FileDataEntry(directory, file)); if (file.isDirectory()) { // Recurse into the subdirectory. File[] listedFiles = file.listFiles(); for (int index = 0; index < listedFiles.length; index++) { File listedFile = listedFiles[index]; try { readFiles(listedFile, dataEntryReader); } catch (IOException e) { throw new IOException("Can't read ["+listedFile.getName()+"] ("+e.getMessage()+")", e); } } } } }
/** * Returns the complete file, including its directory. */ public File getFile() { return file.equals(directory) ? file : new File(directory, getRelativeFilePath()); }
public String toString() { return getName(); } }
/** * Reads the given subdirectory recursively, applying the given DataEntryReader * to all files that are encountered. */ private void readFiles(File file, DataEntryReader dataEntryReader) throws IOException { // Pass the file data entry to the reader. dataEntryReader.read(new FileDataEntry(directory, file)); if (file.isDirectory()) { // Recurse into the subdirectory. File[] listedFiles = file.listFiles(); for (int index = 0; index < listedFiles.length; index++) { File listedFile = listedFiles[index]; try { readFiles(listedFile, dataEntryReader); } catch (IOException e) { throw new IOException("Can't read ["+listedFile.getName()+"] ("+e.getMessage()+")", e); } } } } }
public String getName() { // Chop the directory name from the file name and get the right separators. return file.equals(directory) ? file.getName() : getRelativeFilePath(); }
public String toString() { return getName(); } }
/** * Reads the given subdirectory recursively, applying the given DataEntryReader * to all files that are encountered. */ private void readFiles(File file, DataEntryReader dataEntryReader) throws IOException { // Pass the file data entry to the reader. dataEntryReader.read(new FileDataEntry(directory, file)); if (file.isDirectory()) { // Recurse into the subdirectory. File[] listedFiles = file.listFiles(); for (int index = 0; index < listedFiles.length; index++) { File listedFile = listedFiles[index]; try { readFiles(listedFile, dataEntryReader); } catch (IOException e) { throw new IOException("Can't read ["+listedFile.getName()+"] ("+e.getMessage()+")", e); } } } } }
public String getName() { // Chop the directory name from the file name and get the right separators. return file.equals(directory) ? file.getName() : getRelativeFilePath(); }
public String toString() { return getName(); } }
public String getName() { // Chop the directory name from the file name and get the right separators. return file.equals(directory) ? file.getName() : getRelativeFilePath(); }
public String toString() { return getName(); } }
/** * Returns the complete file, including its directory. */ public File getFile() { return file.equals(directory) ? file : new File(directory, getRelativeFilePath()); }
public String getOriginalName() { return getName(); }
public String getOriginalName() { return getName(); }