How can I know what amount of a HTML document (number of bytes) is loaded at one moment in a JEditorPane ?

Voytek Jarnot

To determine the number of characters:


editorPane.getText().length()

To determine the number of bytes:


editorPane.getText().getBytes().length
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact