Class ConstantTextFragment
java.lang.Object
com.hybris.datahub.core.services.impl.ConstantTextFragment
- All Implemented Interfaces:
ImpExFragment
A block of an ImpEx script containing constant content.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a script fragment with constant content. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a line of the script to this block.booleanaddLine(String line, List<ImpExFragment> fragments) Adds a line of the script to this block.Reads back the content of this script block.Retrieves an input stream to read content of this fragment.
-
Constructor Details
-
ConstantTextFragment
public ConstantTextFragment()Instantiates a script fragment with constant content.
-
-
Method Details
-
addLine
Description copied from interface:ImpExFragmentAdds a line of the script to this block.- Specified by:
addLinein interfaceImpExFragment- Parameters:
line- a line of script text- Returns:
true, if the line is added;false, if the line does not belong to this block.
-
addLine
Description copied from interface:ImpExFragmentAdds a line of the script to this block.- Specified by:
addLinein interfaceImpExFragment- Parameters:
line- a line of script text- Returns:
true, if the line is added;false, if the line does not belong to this block.
-
getContent
Description copied from interface:ImpExFragmentReads back the content of this script block.- Specified by:
getContentin interfaceImpExFragment- Returns:
- content of this script block or an empty string, if this block is empty.
-
getContentAsInputStream
Description copied from interface:ImpExFragmentRetrieves an input stream to read content of this fragment.- Specified by:
getContentAsInputStreamin interfaceImpExFragment- Returns:
- an input stream to read content of this fragment.
-