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
ModelSource
getInputStream
in interface ModelSource
null
.IOException
public String getLocation()
ModelSource
getLocation
in interface ModelSource
null
.public File getPomFile()
null
.Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.