public class UrlModelSource extends Object implements ModelSource
URL
as a model source.Constructor and Description |
---|
UrlModelSource(URL pomUrl)
Creates a new model source backed by the specified URL.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Gets a byte stream to the POM contents.
|
String |
getLocation()
Provides a user-friendly hint about the location of the POM.
|
URL |
getPomUrl()
Gets the POM URL of this model source.
|
String |
toString() |
public UrlModelSource(URL pomUrl)
pomUrl
- The POM file, must not be null
.public InputStream getInputStream() throws IOException
ModelSource
getInputStream
in interface ModelSource
null
.IOException
public String getLocation()
ModelSource
getLocation
in interface ModelSource
null
.public URL getPomUrl()
null
.Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.