protected AbstractGraphProcessExecutor(final Path dotFile, final Path outputFile, final GraphOutputFormat graphOutputFormat) throws SchemaCrawlerException { requireNonNull(dotFile, "No DOT file provided"); requireNonNull(outputFile, "No graph output file provided"); requireNonNull(graphOutputFormat, "No graph output format provided"); this.dotFile = dotFile.normalize().toAbsolutePath(); this.outputFile = outputFile.normalize().toAbsolutePath(); this.graphOutputFormat = graphOutputFormat; if (!isFileReadable(this.dotFile)) { throw new SchemaCrawlerException("Cannot read DOT file, " + this.dotFile); } if (!isFileWritable(this.outputFile)) { throw new SchemaCrawlerException("Cannot write output file, " + this.outputFile); } }
protected AbstractGraphProcessExecutor(final Path dotFile, final Path outputFile, final GraphOutputFormat graphOutputFormat) throws SchemaCrawlerException { requireNonNull(dotFile, "No DOT file provided"); requireNonNull(outputFile, "No graph output file provided"); requireNonNull(graphOutputFormat, "No graph output format provided"); this.dotFile = dotFile.normalize().toAbsolutePath(); this.outputFile = outputFile.normalize().toAbsolutePath(); this.graphOutputFormat = graphOutputFormat; if (!isFileReadable(this.dotFile)) { throw new SchemaCrawlerException("Cannot read DOT file, " + this.dotFile); } if (!isFileWritable(this.outputFile)) { throw new SchemaCrawlerException("Cannot write output file, " + this.outputFile); } }
protected AbstractGraphProcessExecutor(final Path dotFile, final Path outputFile, final GraphOutputFormat graphOutputFormat) throws SchemaCrawlerException { requireNonNull(dotFile, "No DOT file provided"); requireNonNull(outputFile, "No graph output file provided"); requireNonNull(graphOutputFormat, "No graph output format provided"); this.dotFile = dotFile.normalize().toAbsolutePath(); this.outputFile = outputFile.normalize().toAbsolutePath(); this.graphOutputFormat = graphOutputFormat; if (!isFileReadable(this.dotFile)) { throw new SchemaCrawlerException("Cannot read DOT file, " + this.dotFile); } if (!isFileWritable(this.outputFile)) { throw new SchemaCrawlerException("Cannot write output file, " + this.outputFile); } }