data-url

Support for data URLs as specified in RFC 2397 (https://www.ietf.org/rfc/rfc2397.txt)

Лицензия

Лицензия

Категории

Категории

Данные
Группа

Группа

com.github.robtimus
Идентификатор

Идентификатор

data-url
Последняя версия

Последняя версия

2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

data-url
Support for data URLs as specified in RFC 2397 (https://www.ietf.org/rfc/rfc2397.txt)
Ссылка на сайт

Ссылка на сайт

https://robtimus.github.io/data-url/
Система контроля версий

Система контроля версий

https://github.com/robtimus/data-url

Скачать data-url

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.robtimus/data-url/ -->
<dependency>
    <groupId>com.github.robtimus</groupId>
    <artifactId>data-url</artifactId>
    <version>2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.robtimus/data-url/
implementation 'com.github.robtimus:data-url:2.0'
// https://jarcasting.com/artifacts/com.github.robtimus/data-url/
implementation ("com.github.robtimus:data-url:2.0")
'com.github.robtimus:data-url:jar:2.0'
<dependency org="com.github.robtimus" name="data-url" rev="2.0">
  <artifact name="data-url" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.robtimus', module='data-url', version='2.0')
)
libraryDependencies += "com.github.robtimus" % "data-url" % "2.0"
[com.github.robtimus/data-url "2.0"]

Зависимости

test (3)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter jar 5.7.0
org.hamcrest : hamcrest jar 2.2
org.mockito : mockito-core jar 3.5.13

Модули Проекта

Данный проект не имеет модулей.

data-url

The data-url library adds support for the data protocol as specified in RFC 2397.

There are several ways to create data URLs. Most are described by the URL class.

  1. Make use of a shared URLStreamHandlerFactory set on the URL class. This must return an instance of Handler for the data protocol.
  2. Add package com.github.robtimus.net.protocol to system property java.protocol.handler.pkgs.
  3. Use this URL constructor, and provide an instance of Handler as the URLStreamHandler. The context argument can remain null.
    • It's ill-advised to use this constructor, because it does not ensure the data URL is correctly formatted.
  4. Use utility class DataURLs.

Note that class Handler is stateless, and therefore instances can be shared among multiple threads.

Версии библиотеки

Версия
2.0
1.0.1
1.0