JAXB Utils

The collection of useful JAXB utils

Лицензия

Лицензия

Группа

Группа

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

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

jaxb-utils
Последняя версия

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

1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

JAXB Utils
The collection of useful JAXB utils
Система контроля версий

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

https://github.com/baev/jaxb-utils

Скачать jaxb-utils

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

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

Зависимости

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
commons-io : commons-io jar 2.5

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

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

JAXB Utils

Sometimes when you use JAXB it may fall if XML contains some bad XML 1.0 characters like \u0019.

So you can use the following code to make it work:

//Marshal example
try (BadXmlCharacterFilterWriter writer = new BadXmlCharacterFilterWriter(file, encoding)) {
    JAXB.marshal(jaxbObject, writer);
}

//Unmarshal example
try (BadXmlCharactersFilterReader reader = new BadXmlCharactersFilterReader(file, encoding)) {
    return JAXB.unmarshal(reader, jaxbObjectClazz);
}
com.github.baev

QA Tools

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

Версия
1.0