com.openhtmltopdf.bidi.SimpleBidiReorderer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openhtmltopdf-core Show documentation
Show all versions of openhtmltopdf-core Show documentation
Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.
The newest version!
package com.openhtmltopdf.bidi;
/**
* Returns text unchanged.
*/
public class SimpleBidiReorderer implements BidiReorderer {
@Override
public String reorderRTLTextToLTR(String text) {
return text;
// Commented out code, for use with testing only.
// char[] chars = text.toCharArray();
// char[] out = new char[chars.length];
// int j = 0;
//
// for (int i = chars.length - 1; i >= 0; i--)
// {
// out[j++] = chars[i];
// }
//
// return String.valueOf(out, 0, out.length);
}
@Override
public String shapeText(String text) {
return text;
}
@Override
public String deshapeText(String text) {
return text;
}
@Override
public boolean isLiveImplementation() {
return false;
}
}