Read rtf file content encoded java [duplicate]

166
January 28, 2018, at 12:05 PM

This question already has an answer here:

  • RTF to Plain Text in Java 3 answers
  • Java RTF Parser 2 answers

I'm new to the Java and I'm trying to parse the following rtf string content:

{\rtlch\fcs1\af31507 \ltrch\fcs0 \insrsid6361256 
Test Title: {Test for 16000 process\'27s \u8805 1000 Testing2 14432 \u8805 8000}}

I'm wondering how I can extract the contents of Test Title string. I've tried doing the regular below for loop but it print each character.

for (int i = 0; i < content.length(); i++){
      System.out.println(content.charAt(i));
}
READ ALSO
How to pause a Thread in Java from a class that doesn&#39;t have an Object of it? [on hold]

How to pause a Thread in Java from a class that doesn't have an Object of it? [on hold]

I have to work on a simple 2D game and had to make it dynamic with the use of a few threads, which worked perfectly findeBut within an ongoing fight I would like to let them wait(), which seems to be impossible when you don't have access to the objects...

114
How to Copy a Location from a Open-Dialog and then copy it into a jTextField [on hold]

How to Copy a Location from a Open-Dialog and then copy it into a jTextField [on hold]

I need to copy a location from a open dialog and so i want to either put it into a string or somehow copy the location to the text fieldThe IDE i'm using is netbeans and i'm using Java as my programming language

104
How to generate an amount of questions based on user input with Java Swing?

How to generate an amount of questions based on user input with Java Swing?

Relevant information to this thread is as follows:

89
What is the best way to store some data for anonymous user when using spring mvc with security?

What is the best way to store some data for anonymous user when using spring mvc with security?

I am new to spring securityI am building one shopping type application using spring boot and security

80