Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » HTML2TextReader class
HTML2TextReader class [message #332130] Mon, 06 October 2008 13:59 Go to next message
Eclipse UserFriend
Originally posted by: echaland.rogers.com

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C9279A.3F1AAF10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
The class HTML2TextReader has a method getString() that converts HTML to =
text; however this API is private. HTML2TextReader class is defined in =
the package org.eclipse.jface.internal.text.html. Is there a =
corresponding public API that we could use instead?

Thank you

------=_NextPart_000_0008_01C9279A.3F1AAF10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16674" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial color=3D#000080 =
size=3D2>
<P>The class HTML2TextReader has a method getString() that converts HTML =
to=20
text; however this API is private. <FONT face=3DArial color=3D#000080=20
size=3D2>HTML2TextReader class is defined in the package=20
org.eclipse.jface.internal.text.html. Is there a corresponding public =
API that=20
we could use instead?</FONT></P>
<P><FONT face=3DArial color=3D#000080 size=3D2>Thank=20
you</P></FONT></FONT></FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C9279A.3F1AAF10--
Re: HTML2TextReader class [message #332136 is a reply to message #332130] Mon, 06 October 2008 16:29 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Eric wrote:
> Hi,
>
> The class HTML2TextReader has a method getString() that converts HTML
> to text; however this API is private. HTML2TextReader class is defined
> in the package org.eclipse.jface.internal.text.html. Is there a
> corresponding public API that we could use instead?
>
No, this is currently not API (see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=241896).

Dani
>
> Thank you
>
Re: HTML2TextReader class [message #332137 is a reply to message #332136] Mon, 06 October 2008 16:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: echaland.rogers.com

Thanks I see.
However which API should I use if I want to convert the documentation which
is stored as HTML to plain text?
Thank you.


"Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
news:gcded3$d82$1@build.eclipse.org...
> Eric wrote:
>> Hi,
>>
>> The class HTML2TextReader has a method getString() that converts HTML to
>> text; however this API is private. HTML2TextReader class is defined in
>> the package org.eclipse.jface.internal.text.html. Is there a
>> corresponding public API that we could use instead?
>>
> No, this is currently not API (see:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=241896).
>
> Dani
>>
>> Thank you
>>
Re: HTML2TextReader class [message #332146 is a reply to message #332137] Tue, 07 October 2008 07:04 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Eric wrote:
> Thanks I see.
> However which API should I use if I want to convert the documentation which
> is stored as HTML to plain text?
>
That's exactly why we didn't make HTML2TextReader API so far ;.-) It
only deals with a little subset of HTML that we deem needed to show
Javadoc in hovers. It is by far not intended as a HTML to text converter
and since this isn't an Eclipse specific problem there won't be an API
for that.

Dani
> Thank you.
>
>
> "Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
> news:gcded3$d82$1@build.eclipse.org...
>
>> Eric wrote:
>>
>>> Hi,
>>>
>>> The class HTML2TextReader has a method getString() that converts HTML to
>>> text; however this API is private. HTML2TextReader class is defined in
>>> the package org.eclipse.jface.internal.text.html. Is there a
>>> corresponding public API that we could use instead?
>>>
>>>
>> No, this is currently not API (see:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=241896).
>>
>> Dani
>>
>>> Thank you
>>>
>>>
>
>
>
Previous Topic:register a listener at workbench/plugin start
Next Topic:How to know that autocompletion was automatically triggered, and stop it under some condition?
Goto Forum:
  


Current Time: Tue Jul 16 13:45:50 GMT 2024

Powered by FUDForum. Page generated in 0.03632 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top