public class FileModelSource extends Object implements ModelSource
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.
|
File |
getPomFile()
Gets the POM file of this model source.
|
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.Copyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.