public class ProjectInfoReportUtils extends Object
| Constructor and Description | 
|---|
| ProjectInfoReportUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | getArtifactIdCell(String artifactId,
                 String link) | 
| static String | getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory,
              Artifact artifact,
              org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
              List<ArtifactRepository> remoteRepositories,
              ArtifactRepository localRepository) | 
| static String | getContent(URL url,
          org.apache.maven.project.MavenProject project,
          Settings settings,
          String encoding)Get the input stream from a URL. | 
| static String | getContent(URL url,
          Settings settings)Get the input stream using UTF-8 as character encoding from a URL. | 
| static String | getContent(URL url,
          Settings settings,
          String encoding)Get the input stream from a URL. | 
| static boolean | isArtifactUrlValid(String url) | 
| static boolean | isNumber(String str) | 
| static float | toFloat(String str,
       float defaultValue) | 
public static String getContent(URL url, Settings settings) throws IOException
url - not nullsettings - not null to handle proxy settingsIOException - if anygetContent(URL, Settings, String)public static String getContent(URL url, Settings settings, String encoding) throws IOException
url - not nullsettings - not null to handle proxy settingsencoding - the wanted encoding for the URL input stream. If null, UTF-8 will be used.IOException - if anypublic static String getContent(URL url, org.apache.maven.project.MavenProject project, Settings settings, String encoding) throws IOException
url - not nullproject - could be nullsettings - not null to handle proxy settingsencoding - the wanted encoding for the URL input stream. If null, UTF-8 will be used.IOException - if anypublic static String getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory, Artifact artifact, org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository)
factory - not nullartifact - not nullmavenProjectBuilder - not nullremoteRepositories - not nulllocalRepository - not nullpublic static String getArtifactIdCell(String artifactId, String link)
artifactId - not nulllink - could be nullAbstractMavenReportRenderer#linkPatternedText(String)public static boolean isArtifactUrlValid(String url)
url - not nulltrue if the url is valid, false otherwise.public static boolean isNumber(String str)
str - The string to be checked.public static float toFloat(String str, float defaultValue)
str - The string which should be converted.defaultValue - The default value.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.