@Override
    public String loadFile(final URI fileUri) throws IOException {
    """
	This method loads a file from a file:/... URI. This is probably not what you are looking for.
    """
        final File fileLocation = new File(fileUri);
        if (fileLocation.exists() && fileLocation.canRead()) {
            if (fileLocation.isFile()) {
                return Files.toString(fileLocation, charset);
            }
            else {
                throw new MigratoryException(Reason.INTERNAL, "%s is not a file!", fileLocation);
            }
        }
        else {
            throw new MigratoryException(Reason.INTERNAL, "Can not access %s!", fileLocation);
        }
    }
@Override
    public String loadFile(final URI fileUri) throws IOException
    {
        final File fileLocation = new File(fileUri);
        if (fileLocation.exists() && fileLocation.canRead()) {
            if (fileLocation.isFile()) {
                return Files.toString(fileLocation, charset);
            }
            else {
                throw new MigratoryException(Reason.INTERNAL, "%s is not a file!", fileLocation);
            }
        }
        else {
            throw new MigratoryException(Reason.INTERNAL, "Can not access %s!", fileLocation);
        }
    }
@ Override public String loadFile ( final URI fileUri ) throws IOException { final File fileLocation = new File ( fileUri ) ; if ( fileLocation . exists ( ) && fileLocation . canRead ( ) ) { if ( fileLocation . isFile ( ) ) { return Files . toString ( fileLocation , charset ) ; } else { throw new MigratoryException ( Reason . INTERNAL , "%s is not a file!" , fileLocation ) ; } } else { throw new MigratoryException ( Reason . INTERNAL , "Can not access %s!" , fileLocation ) ; } }
This method loads a file from a file:/... URI. This is probably not what you are looking for.
This method loads a file from a file : / ... URI . This is probably not what you are looking for .