@Immutable public final class PDBusinessCardHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static PDBusinessCard |
parseBusinessCard(byte[] aData,
Charset aCharset)
A generic reading API to read all supported versions of the BusinessCard
from a byte array and an optional character set.
|
static PDBusinessCard |
parseBusinessCard(byte[] aData,
Consumer<? super com.helger.jaxb.GenericJAXBMarshaller<?>> aMarshallerCustomizer)
A generic reading API to read all supported versions of the BusinessCard
from a byte array and an optional character set.
|
static PDBusinessCard |
parseBusinessCard(Node aNode)
A generic reading API to read all supported versions of the BusinessCard
from a DOM node.
|
static PDBusinessCard |
parseBusinessCard(Node aNode,
Consumer<? super com.helger.jaxb.GenericJAXBMarshaller<?>> aMarshallerCustomizer)
A generic reading API to read all supported versions of the BusinessCard
from a DOM node.
|
@Nullable public static PDBusinessCard parseBusinessCard(@Nonnull byte[] aData, @Nullable Charset aCharset)
aData - Bytes to read. May not be null.aCharset - Character set to use. May be null in which case the XML
character set determination takes place.null if parsing fails.@Nullable public static PDBusinessCard parseBusinessCard(@Nonnull byte[] aData, @Nullable Consumer<? super com.helger.jaxb.GenericJAXBMarshaller<?>> aMarshallerCustomizer)
aData - Bytes to read. May not be null.aMarshallerCustomizer - The optional marshaller customizer to be used. May be
null.null if parsing fails.@Nullable public static PDBusinessCard parseBusinessCard(@Nonnull Node aNode)
aNode - Pre-parsed XML node to read. May not be null.null if parsing fails.@Nullable public static PDBusinessCard parseBusinessCard(@Nonnull Node aNode, @Nullable Consumer<? super com.helger.jaxb.GenericJAXBMarshaller<?>> aMarshallerCustomizer)
aNode - Pre-parsed XML node to read. May not be null.aMarshallerCustomizer - The optional marshaller customizer to be used. May be
null.null if parsing fails.Copyright © 2015–2021 Philip Helger. All rights reserved.