Interface Text
- All Known Implementing Classes:
Parser.ReusableToken
public interface Text
Text returned by HTMLTagTokenizer.
- Author:
- Joe Walnes
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the complete contents of the text block, preserving original formatting.intThe length of the text.intThe position of the text.voidwriteTo(SitemeshBufferFragment.Builder buffer, int position) Write out the complete contents of the text block, preserving original formatting.
-
Method Details
-
getContents
String getContents()Get the complete contents of the text block, preserving original formatting. This has a slight overhead in that it needs to construct a String. For improved performance, use writeTo() instead.- Returns:
- the contents
-
writeTo
Write out the complete contents of the text block, preserving original formatting.- Parameters:
buffer- the bufferposition- the position
-
getPosition
int getPosition()The position of the text.- Returns:
- the position
-
getLength
int getLength()The length of the text.- Returns:
- the length
-