public class ConstantTextFragment extends java.lang.Object implements ImpExFragment
| Constructor and Description |
|---|
ConstantTextFragment()
Instantiates a script fragment with constant content.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLine(java.lang.String line)
Adds a line of the script to this block.
|
boolean |
addLine(java.lang.String line,
java.util.List<ImpExFragment> fragments)
Adds a line of the script to this block.
|
java.lang.String |
getContent()
Reads back the content of this script block.
|
java.io.InputStream |
getContentAsInputStream()
Retrieves an input stream to read content of this fragment.
|
public ConstantTextFragment()
public boolean addLine(java.lang.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(java.lang.String line,
java.util.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 java.lang.String getContent()
ImpExFragmentgetContent in interface ImpExFragmentpublic java.io.InputStream getContentAsInputStream()
ImpExFragmentgetContentAsInputStream in interface ImpExFragmentCopyright © 2018 SAP SE. All Rights Reserved.