All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openqa.selenium.devtools.v90.io.model.StreamHandle Maven / Gradle / Ivy

Go to download

Selenium automates browsers. That's it! What you do with that power is entirely up to you.

There is a newer version: 4.0.0-beta-4
Show newest version
package org.openqa.selenium.devtools.v90.io.model;

import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;

/**
 * This is either obtained from another method or specifed as `blob:<uuid>` where
 * `<uuid>` is an UUID of a Blob.
 */
public class StreamHandle {

    private final java.lang.String streamHandle;

    public StreamHandle(java.lang.String streamHandle) {
        this.streamHandle = java.util.Objects.requireNonNull(streamHandle, "Missing value for StreamHandle");
    }

    private static StreamHandle fromJson(JsonInput input) {
        return new StreamHandle(input.nextString());
    }

    public String toJson() {
        return streamHandle.toString();
    }

    public String toString() {
        return streamHandle.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy