@@ -62,34 +62,47 @@ public class Blob extends HtmlUnitScriptable {
6262 * The backend used for saving the blob.
6363 */
6464 protected abstract static class Backend implements Serializable {
65+
6566 /**
67+ * Returns the name.
68+ *
6669 * @return the name
6770 */
6871 abstract String getName ();
6972
7073 /**
74+ * Returns the last modified timestamp as long.
75+ *
7176 * @return the last modified timestamp as long
7277 */
7378 abstract long getLastModified ();
7479
7580 /**
81+ * Returns the size.
82+ *
7683 * @return the size
7784 */
7885 abstract long getSize ();
7986
8087 /**
88+ * Returns the type.
89+ *
8190 * @param browserVersion the {@link BrowserVersion}
8291 * @return the type
8392 */
8493 abstract String getType (BrowserVersion browserVersion );
8594
8695 /**
96+ * Returns the text.
97+ *
8798 * @return the text
8899 * @throws IOException in case of error
89100 */
90101 abstract String getText () throws IOException ;
91102
92103 /**
104+ * Returns the bytes.
105+ *
93106 * @param start the start position
94107 * @param end the end position
95108 * @return the bytes
@@ -317,6 +330,7 @@ public Blob(final byte[] bytes, final String contentType) {
317330
318331 /**
319332 * Returns the {@code size} property.
333+ *
320334 * @return the {@code size} property
321335 */
322336 @ JsxGetter
@@ -326,6 +340,7 @@ public long getSize() {
326340
327341 /**
328342 * Returns the {@code type} property.
343+ *
329344 * @return the {@code type} property
330345 */
331346 @ JsxGetter
@@ -334,6 +349,9 @@ public String getType() {
334349 }
335350
336351 /**
352+ * Returns a Promise that resolves with an ArrayBuffer containing the
353+ * data in binary form.
354+ *
337355 * @return a Promise that resolves with an ArrayBuffer containing the
338356 * data in binary form.
339357 */
@@ -350,6 +368,8 @@ public NativePromise arrayBuffer() {
350368 }
351369
352370 /**
371+ * Returns a new Blob object which contains data from a subset of the blob on which it's called.
372+ *
353373 * @param start An index into the Blob indicating the first byte to include in the new Blob. If you specify
354374 * a negative value, it's treated as an offset from the end of the Blob toward the beginning.
355375 * For example, -10 would be the 10th from last byte in the Blob. The default value is 0.
@@ -402,6 +422,8 @@ public Blob slice(final Object start, final Object end, final Object contentType
402422 }
403423
404424 /**
425+ * Returns a ReadableStream which, upon reading, returns the contents of the Blob.
426+ *
405427 * @return a ReadableStream which, upon reading, returns the contents of the Blob.
406428 */
407429 @ JsxFunction
@@ -410,6 +432,9 @@ public ReadableStream stream() {
410432 }
411433
412434 /**
435+ * Returns a Promise that resolves with a string containing the
436+ * contents of the blob, interpreted as UTF-8.
437+ *
413438 * @return a Promise that resolves with a string containing the
414439 * contents of the blob, interpreted as UTF-8.
415440 */
@@ -419,6 +444,8 @@ public NativePromise text() {
419444 }
420445
421446 /**
447+ * Returns the bytes of this blob.
448+ *
422449 * @return the bytes of this blob
423450 */
424451 public byte [] getBytes () {
0 commit comments