MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / setData

Method setData

src/main/java/org/htmlunit/html/HtmlFileInput.java:87–89  ·  view source on GitHub ↗

Assigns in-memory data to this file input element. During submission, instead of loading data from a file, the data is read from in-memory byte array. NOTE: Only use this method if you wish to upload in-memory data; if you instead wish to upload the contents of an actual file, use {@link

(final byte[] data)

Source from the content-addressed store, hash-verified

85 * @param data the in-memory data assigned to this file input element
86 */
87 public final void setData(final byte[] data) {
88 data_ = data;
89 }
90
91 /**
92 * {@inheritDoc}

Callers 10

setDataOnlyMethod · 0.95
normalizeMethod · 0.45
setTextInternalMethod · 0.45
setNodeValueMethod · 0.45
typeDoneMethod · 0.45
splitTextMethod · 0.45

Calls

no outgoing calls