public class FileModelSource extends Object implements ModelSource2
File as a model source.| Constructor and Description |
|---|
FileModelSource(File pomFile)
Creates a new model source backed by the specified file.
|
| 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.
|
URI |
getLocationURI()
Returns location of the POM, never
null. |
File |
getPomFile()
Gets the POM file of this model source.
|
ModelSource2 |
getRelatedSource(String relPath)
Returns model source identified by a path relative to this model source POM.
|
String |
toString() |
public FileModelSource(File pomFile)
pomFile - The POM file, must not be null.public InputStream getInputStream() throws IOException
ModelSourcegetInputStream in interface ModelSourcenull.IOExceptionpublic String getLocation()
ModelSourcegetLocation in interface ModelSourcenull.public File getPomFile()
null.public ModelSource2 getRelatedSource(String relPath)
ModelSource2relPath parameter values that
getRelatedSource in interface ModelSource2relPath - is the path of the requested model source relative to this model source POM.null if no such model source.public URI getLocationURI()
ModelSource2null.getLocationURI in interface ModelSource2Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.