public class StringModelSource extends Object implements ModelSource
CharSequence
as a model source.Constructor and Description |
---|
StringModelSource(CharSequence pom)
Creates a new model source backed by the specified string.
|
StringModelSource(CharSequence pom,
String location)
Creates a new model source backed by the specified string.
|
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.
|
String |
getModel()
Gets the character sequence of this model source.
|
String |
toString() |
public StringModelSource(CharSequence pom)
pom
- The POM's string representation, may be empty or null
.public StringModelSource(CharSequence pom, String location)
pom
- The POM's string representation, may be empty or null
.location
- The location to report for this use, may be null
.public InputStream getInputStream() throws IOException
ModelSource
getInputStream
in interface ModelSource
null
.IOException
public String getLocation()
ModelSource
getLocation
in interface ModelSource
null
.public String getModel()
null
.Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.