org.jostraca.transform
Class RemoveFirstBlankLineTransform
java.lang.Object
org.jostraca.transform.TextualTransformSupport
org.jostraca.transform.RemoveFirstBlankLineTransform
- All Implemented Interfaces:
- TextualTransform
- public class RemoveFirstBlankLineTransform
- extends TextualTransformSupport
Remove first blank line (line containing just whitespace) from a text element
|
Field Summary |
static java.lang.String |
CN
|
static java.lang.String |
NAME
|
|
Method Summary |
java.lang.String |
getName()
Name of the transform |
void |
setParameters(PropertySet pPropertySet)
Set the parameters, if any, that this transform uses. |
java.lang.String |
transform(java.lang.String pToTransform)
Transform the supplied String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
CN
public static final java.lang.String CN
RemoveFirstBlankLineTransform
public RemoveFirstBlankLineTransform()
transform
public java.lang.String transform(java.lang.String pToTransform)
throws TransformException
- Description copied from interface:
TextualTransform
- Transform the supplied String. Return Standard.EMPTY as default in case of failure.
- Specified by:
transform in interface TextualTransform- Specified by:
transform in class TextualTransformSupport
- Throws:
TransformException- See Also:
TextualTransform
setParameters
public void setParameters(PropertySet pPropertySet)
- Description copied from interface:
TextualTransform
- Set the parameters, if any, that this transform uses.
Throw org.jostraca.transform.TextualTransformException if parameters are invalid.
- Specified by:
setParameters in interface TextualTransform- Overrides:
setParameters in class TextualTransformSupport
- See Also:
TextualTransform
getName
public java.lang.String getName()
- Description copied from interface:
TextualTransform
- Name of the transform
- Specified by:
getName in interface TextualTransform- Overrides:
getName in class TextualTransformSupport
Copyright © 2000-2002 Richard Rodger