if (inputFile.isSameAs(outputFile.getPath())) { throw new SVGConverterException(ERROR_SOURCE_SAME_AS_DESTINATION, true /* fatal error */); if (!inputFile.isReadable()) { throw new SVGConverterException(ERROR_CANNOT_READ_SOURCE, new Object[]{inputFile.getName()}); InputStream in = inputFile.openStream(); in.close(); } catch(IOException ioe) { throw new SVGConverterException(ERROR_CANNOT_OPEN_SOURCE, new Object[] {inputFile.getName(), ioe.toString()}); input = new TranscoderInput(inputFile.getURI());
if (inputFile.isSameAs(outputFile.getPath())) { throw new SVGConverterException(ERROR_SOURCE_SAME_AS_DESTINATION, true /* fatal error */); if (!inputFile.isReadable()) { throw new SVGConverterException(ERROR_CANNOT_READ_SOURCE, new Object[]{inputFile.getName()}); InputStream in = inputFile.openStream(); in.close(); } catch(IOException ioe) { throw new SVGConverterException(ERROR_CANNOT_OPEN_SOURCE, new Object[] {inputFile.getName(), ioe.toString()}); input = new TranscoderInput(inputFile.getURI());
if (inputFile.isSameAs(outputFile.getPath())) { throw new SVGConverterException(ERROR_SOURCE_SAME_AS_DESTINATION, true /* fatal error */); if (!inputFile.isReadable()) { throw new SVGConverterException(ERROR_CANNOT_READ_SOURCE, new Object[]{inputFile.getName()}); InputStream in = inputFile.openStream(); in.close(); } catch(IOException ioe) { throw new SVGConverterException(ERROR_CANNOT_OPEN_SOURCE, new Object[] {inputFile.getName(), ioe.toString()}); input = new TranscoderInput(inputFile.getURI());