Class RtfStringReplacer
- java.lang.Object
-
- com.levigo.jadice.server.mail.worker.internal.util.RtfStringReplacer
-
public class RtfStringReplacer extends Object
This class offers the possibility to replace certain strings in a rtf document between a defined start-tag and end-tag.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RtfStringReplacer.Mode
-
Constructor Summary
Constructors Constructor Description RtfStringReplacer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
getBOMBytes(org.apache.commons.io.input.BOMInputStream bomInputStream)
protected static String
getLongestString(String[] array)
static com.levigo.jadice.document.io.SeekableInputStream
replaceAll(com.levigo.jadice.document.io.SeekableInputStream sis, String encoding, String needleString, String replacementString, String prefixString, String suffixString)
-
-
-
Method Detail
-
replaceAll
public static com.levigo.jadice.document.io.SeekableInputStream replaceAll(com.levigo.jadice.document.io.SeekableInputStream sis, String encoding, String needleString, String replacementString, String prefixString, String suffixString) throws IOException
- Throws:
IOException
-
getBOMBytes
public static byte[] getBOMBytes(org.apache.commons.io.input.BOMInputStream bomInputStream) throws IOException
- Throws:
IOException
-
-