@Override
    public String loadFile(final URI fileUri)
    {
        try {
            final URL urlLocation = Resources.getResource(this.getClass(), fileUri.getPath());
            return Resources.toString(urlLocation, Charsets.UTF_8);
        }
        catch (IOException e) {
            throw new MigratoryException(Reason.INTERNAL, e);
        }
    }
@Override
    public String loadFile(final URI fileUri)
    {
        try {
            final URL urlLocation = Resources.getResource(this.getClass(), fileUri.getPath());
            return Resources.toString(urlLocation, Charsets.UTF_8);
        }
        catch (IOException e) {
            throw new MigratoryException(Reason.INTERNAL, e);
        }
    }
@ Override public String loadFile ( final URI fileUri ) { try { final URL urlLocation = Resources . getResource ( this . getClass ( ) , fileUri . getPath ( ) ) ; return Resources . toString ( urlLocation , Charsets . UTF_8 ) ; } catch ( IOException e ) { throw new MigratoryException ( Reason . INTERNAL , e ) ; } }
This method loads a file from a classpath:/... URI.
This method loads a file from a classpath : / ... URI .