org.refcodes.factory.MarshalTypeFactory<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
, org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
, org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComposite<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String,InputStream>
, org.refcodes.factory.UnmarshalTypeFactory<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
, org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
, org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String,InputStream>
, CanonicalMapFactory
TomlCanonicalMapFactorySingleton
public class TomlCanonicalMapFactory extends AbstractCanonicalMapFactory implements CanonicalMapFactory
CanonicalMapFactory
interface with support of
so called "TOML properties". In addition, nested sections are supported: A
section represents the first portion of a path and looks like such:
[SectionA]
ValueA=A
This results in key/value property of:
SectionA/ValueA=A
[SectionA]
ValueA=A
[[SectionB]]
ValueB=B
SectionA/ValueA=A
SectionA/SectionB/ValueB=B
For TOML properties, see "https://en.wikipedia.org/wiki/TOML"org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<T extends Object,C extends Object>, org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComposite<T extends Object,SRC extends Object,C extends Object>
org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T extends Object,C extends Object>, org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<T extends Object,SRC extends Object,C extends Object>
Modifier and Type | Field | Description |
---|---|---|
static char[] |
COMMENTS |
|
static char[] |
DELIMITERS |
|
static char |
SECTION_BEGIN |
|
static char |
SECTION_END |
COMMENT_PROPERTY, DELIMITER_PROPERTY, SUPPORTED_DELIMITERS_PROPERTY
Constructor | Description |
---|---|
TomlCanonicalMapFactory() |
Modifier and Type | Method | Description |
---|---|---|
org.refcodes.struct.CanonicalMap.CanonicalMapBuilder |
fromMarshaled(InputStream aExternalRepresentation) |
|
org.refcodes.struct.CanonicalMap.CanonicalMapBuilder |
fromMarshaled(InputStream aExternalRepresentation,
Map<String,String> aProperties) |
|
InputStream |
fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure) |
|
InputStream |
fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure,
Map<String,String> aProperties) |
|
String |
toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure) |
|
String |
toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure,
Map<String,String> aProperties) |
postProcess, toComment, toDelimiter, toInputStream, toString, toSupportedDelimiters, toXml
toUnmarshaled, toUnmarshaled
public static final char SECTION_BEGIN
public static final char SECTION_END
public static final char[] COMMENTS
public static final char[] DELIMITERS
public org.refcodes.struct.CanonicalMap.CanonicalMapBuilder fromMarshaled(InputStream aExternalRepresentation) throws org.refcodes.exception.UnmarshalException
fromMarshaled
in interface org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
org.refcodes.exception.UnmarshalException
public org.refcodes.struct.CanonicalMap.CanonicalMapBuilder fromMarshaled(InputStream aExternalRepresentation, Map<String,String> aProperties) throws org.refcodes.exception.UnmarshalException
fromMarshaled
in interface org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
org.refcodes.exception.UnmarshalException
public String toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure) throws org.refcodes.exception.MarshalException
toMarshaled
in interface CanonicalMapFactory
toMarshaled
in interface org.refcodes.factory.MarshalTypeFactory<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
org.refcodes.exception.MarshalException
public String toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException
toMarshaled
in interface CanonicalMapFactory
toMarshaled
in interface org.refcodes.factory.MarshalTypeFactory<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
org.refcodes.exception.MarshalException
public InputStream fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure) throws org.refcodes.exception.MarshalException
fromUnmarshaled
in interface org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
org.refcodes.exception.MarshalException
public InputStream fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException
fromUnmarshaled
in interface org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
org.refcodes.exception.MarshalException
Copyright © 2021. All rights reserved.