public class ConstantTextFragment extends Object implements ImpExFragment
| Constructor and Description |
|---|
ConstantTextFragment()
Instantiates a script fragment with constant content.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLine(String line)
Adds a line of the script to this block.
|
boolean |
addLine(String line,
List<ImpExFragment> fragments)
Adds a line of the script to this block.
|
String |
getContent()
Reads back the content of this script block.
|
InputStream |
getContentAsInputStream()
Retrieves an input stream to read content of this fragment.
|
public ConstantTextFragment()
public boolean addLine(String line)
ImpExFragmentaddLine in interface ImpExFragmentline - a line of script texttrue, if the line is added; false, if the line does not belong to this block.public boolean addLine(String line, List<ImpExFragment> fragments)
ImpExFragmentaddLine in interface ImpExFragmentline - a line of script texttrue, if the line is added; false, if the line does not belong to this block.public String getContent()
ImpExFragmentgetContent in interface ImpExFragmentpublic InputStream getContentAsInputStream()
ImpExFragmentgetContentAsInputStream in interface ImpExFragmentCopyright © 2017 SAP SE. All Rights Reserved.