dcsimg

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