@Override public void init() throws Exception { log.debug("Initializing directory stream with URL '{}'", url.toString()); log.debug(" file path of URL is: {}", url.getFile()); dir = new File(url.getFile()); // dir = new File(new URI(url.toString())); if (!dir.isDirectory()) throw new IllegalArgumentException("Directory not found"); dirPath = dir.getAbsolutePath(); files = dir.list(); counter = 0; }
@Override public void init() throws Exception { if (filesAreRead.getAndSet(false)) { log.debug("Initializing directory stream with URL '{}'", url.toString()); log.debug(" file path of URL is: {}", url.getFile()); dir = new File(url.getFile()); // dir = new File(new URI(url.toString())); if (!dir.isDirectory()) throw new IllegalArgumentException("Directory not found"); dirPath = dir.getAbsolutePath(); files = dir.list(); counter = new AtomicInteger(0); } }
@Override public void init() throws Exception { if (filesAreRead.getAndSet(false)) { log.debug("Initializing directory stream with URL '{}'", url.toString()); log.debug(" file path of URL is: {}", url.getFile()); dir = new File(url.getFile()); // dir = new File(new URI(url.toString())); if (!dir.isDirectory()) throw new IllegalArgumentException("Directory not found"); dirPath = dir.getAbsolutePath(); files = dir.list(); counter = new AtomicInteger(0); } }
dir = new File(this.url.getFile()); if (!dir.isDirectory() && (!(this.url.getProtocol()
dir = new File(this.url.getFile()); if (!dir.isDirectory() && (!(this.url.getProtocol()