Class FileIO


  • @Named
    @Singleton
    public class FileIO
    extends Object
    Class to resolve Files from alternate locations
    • Method Detail

      • resolveURL

        public File resolveURL​(String reference)
                        throws IOException
        Read the raw file from a given URL. Useful if we need to read a remote file.
        Parameters:
        reference - the URL to read.
        Returns:
        the file for the URL
        Throws:
        IOException - if an error occurs.
      • determineEOL

        public static org.commonjava.maven.ext.common.util.LineSeparator determineEOL​(File file)
                                                                               throws org.commonjava.maven.ext.common.ManipulationException
        Throws:
        org.commonjava.maven.ext.common.ManipulationException