public class ImpexMacroFragment extends Object implements ImpExFragment
| Constructor and Description |
|---|
ImpexMacroFragment()
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 ImpexMacroFragment()
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() throws IOException
ImpExFragmentgetContent in interface ImpExFragmentIOException - if failed to read this fragment content.public InputStream getContentAsInputStream() throws IOException
ImpExFragmentgetContentAsInputStream in interface ImpExFragmentIOException - if failed to create an input stream for the fragment content.Copyright © 2017 SAP SE. All Rights Reserved.