Top Inners Constructors Methods
com.openhtmltopdf.layout

public Class TextUtil

extends Object
Class Inheritance
Imports
java.text.BreakIterator, java.util.Locale, com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.css.style.CalculatedStyle, com.openhtmltopdf.extend.FSTextBreaker, .FSTextTransformer, com.openhtmltopdf.util.ThreadCtx

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
TextUtil.DefaultToTitleTransformer

A best effort implementation of title casing.

public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
isFirstLetterSeparatorChar(int currentChar)

According to the CSS spec the first letter includes certain punctuation immediately preceding or following the actual first letter.

public static String
public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TextUtilback to summary
public TextUtil()

Method Detail

isFirstLetterSeparatorCharback to summary
public static boolean isFirstLetterSeparatorChar(int currentChar)

According to the CSS spec the first letter includes certain punctuation immediately preceding or following the actual first letter.

transformFirstLetterTextback to summary
public static String transformFirstLetterText(String text, CalculatedStyle style)
transformTextback to summary
public static String transformText(String text, CalculatedStyle style)
com.openhtmltopdf.layout back to summary

public Class TextUtil.DefaultCharacterBreaker

extends Object
implements FSTextBreaker
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.extend.FSTextBreaker

Field Summary

Modifier and TypeField and Description
private final BreakIterator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iterback to summary
private final BreakIterator iter

Constructor Detail

DefaultCharacterBreakerback to summary
public DefaultCharacterBreaker(BreakIterator iter)

Method Detail

nextback to summary
public int next()

Implements com.openhtmltopdf.extend.FSTextBreaker.next.

Annotations
@Override
setTextback to summary
public void setText(String newText)

Implements com.openhtmltopdf.extend.FSTextBreaker.setText.

Annotations
@Override
com.openhtmltopdf.layout back to summary

public Class TextUtil.DefaultToLowerTransformer

extends Object
implements FSTextTransformer
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.extend.FSTextTransformer

Field Summary

Modifier and TypeField and Description
private final Locale

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lcback to summary
private final Locale lc

Constructor Detail

DefaultToLowerTransformerback to summary
public DefaultToLowerTransformer(Locale lc)

Method Detail

transformback to summary
public String transform(String in)

Implements com.openhtmltopdf.extend.FSTextTransformer.transform.

Annotations
@Override
com.openhtmltopdf.layout back to summary

public Class TextUtil.DefaultToTitleTransformer

extends Object
implements FSTextTransformer
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.extend.FSTextTransformer

A best effort implementation of title casing. Use the implementation in the rtl-support module for better results.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultToTitleTransformerback to summary
public DefaultToTitleTransformer()

Method Detail

transformback to summary
public String transform(String in)

Implements com.openhtmltopdf.extend.FSTextTransformer.transform.

Annotations
@Override
com.openhtmltopdf.layout back to summary

public Class TextUtil.DefaultToUpperTransformer

extends Object
implements FSTextTransformer
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.extend.FSTextTransformer

Field Summary

Modifier and TypeField and Description
private final Locale

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lcback to summary
private final Locale lc

Constructor Detail

DefaultToUpperTransformerback to summary
public DefaultToUpperTransformer(Locale lc)

Method Detail

transformback to summary
public String transform(String in)

Implements com.openhtmltopdf.extend.FSTextTransformer.transform.

Annotations
@Override