Class Compose
java.lang.Object
org.snakeyaml.engine.v2.api.lowlevel.Compose
Helper to compose input stream to Node
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParse all YAML documents in a stream and produce corresponding representation trees.composeAllFromReader
(Reader yaml) Parse all YAML documents in a stream and produce corresponding representation trees.composeAllFromString
(String yaml) Parse all YAML documents in a stream and produce corresponding representation trees.Parse a YAML stream and produceNode
composeReader
(Reader yaml) Parse a YAML stream and produceNode
composeString
(String yaml) Parse a YAML stream and produceNode
-
Field Details
-
settings
-
-
Constructor Details
-
Compose
Create instance with providedLoadSettings
- Parameters:
settings
- - configuration
-
-
Method Details
-
composeReader
Parse a YAML stream and produceNode
- Parameters:
yaml
- - YAML document(s). Since the encoding is already known the BOM must not be present (it will be parsed as content)- Returns:
- parsed
Node
if available - See Also:
-
composeInputStream
Parse a YAML stream and produceNode
- Parameters:
yaml
- - YAML document(s). Default encoding is UTF-8. The BOM must be present if the encoding is UTF-16 or UTF-32- Returns:
- parsed
Node
if available - See Also:
-
composeString
Parse a YAML stream and produceNode
- Parameters:
yaml
- - YAML document(s).- Returns:
- parsed
Node
if available - See Also:
-
composeAllFromReader
Parse all YAML documents in a stream and produce corresponding representation trees.- Parameters:
yaml
- stream of YAML documents- Returns:
- parsed root Nodes for all the specified YAML documents
- See Also:
-
composeAllFromInputStream
Parse all YAML documents in a stream and produce corresponding representation trees.- Parameters:
yaml
- - YAML document(s). Default encoding is UTF-8. The BOM must be present if the encoding is UTF-16 or UTF-32- Returns:
- parsed root Nodes for all the specified YAML documents
- See Also:
-
composeAllFromString
Parse all YAML documents in a stream and produce corresponding representation trees.- Parameters:
yaml
- - YAML document(s).- Returns:
- parsed root Nodes for all the specified YAML documents
- See Also:
-