public abstract static class DataURLs.Builder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DataURLs.Builder.FromBytes
A class that can be used to build data URLs from bytes.
|
static class |
DataURLs.Builder.FromText
A class that can be used to build data URLs from text.
|
static class |
DataURLs.Builder.WithMediaType
A class that can be used to build data URLs with media types.
|
Modifier and Type | Method and Description |
---|---|
URL |
build()
Creates a new data URL.
|
DataURLs.Builder.WithMediaType |
withMediaType(String mediaType)
Specifies the media type of the data URL.
|
public DataURLs.Builder.WithMediaType withMediaType(String mediaType)
mediaType
- The media type for the data URL.NullPointerException
- If the media type is null
.IllegalArgumentException
- If the media type is invalid.public URL build()
Copyright © 2017–2023. All rights reserved.