Class 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.
    • Constructor Detail

      • RtfStringReplacer

        public RtfStringReplacer()
    • 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
      • getLongestString

        protected static String getLongestString​(String[] array)