public static final class DataURLs.Builder.WithMediaType extends Object
Modifier and Type | Method and Description |
---|---|
URL |
build()
Creates a new data URL.
|
DataURLs.Builder.WithMediaType |
withCharset(Charset charset)
Sets the charset of the media type.
|
DataURLs.Builder.WithMediaType |
withMediaTypeParameter(String name,
String value)
Sets the value for a media type parameter.
|
public DataURLs.Builder.WithMediaType withMediaTypeParameter(String name, String value)
name
- The parameter name.value
- The parameter value. Use null
to remove an existing parameter.public DataURLs.Builder.WithMediaType withCharset(Charset charset)
withMediaTypeParameter("charset", charset.name())
.charset
- The charset.NullPointerException
- If the charset is null
.public URL build()
Copyright © 2017–2023. All rights reserved.