Class Compose
- java.lang.Object
-
- org.snakeyaml.engine.v2.api.lowlevel.Compose
-
public class Compose extends Object
Helper to compose input stream to Node
-
-
Constructor Summary
Constructors Constructor Description Compose(LoadSettings settings)Create instance with providedLoadSettings
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<org.snakeyaml.engine.v2.nodes.Node>composeAllFromInputStream(InputStream yaml)Parse all YAML documents in a stream and produce corresponding representation trees.Iterable<org.snakeyaml.engine.v2.nodes.Node>composeAllFromReader(Reader yaml)Parse all YAML documents in a stream and produce corresponding representation trees.Iterable<org.snakeyaml.engine.v2.nodes.Node>composeAllFromString(String yaml)Parse all YAML documents in a stream and produce corresponding representation trees.Optional<org.snakeyaml.engine.v2.nodes.Node>composeInputStream(InputStream yaml)Parse a YAML stream and produceNodeOptional<org.snakeyaml.engine.v2.nodes.Node>composeReader(Reader yaml)Parse a YAML stream and produceNodeOptional<org.snakeyaml.engine.v2.nodes.Node>composeString(String yaml)Parse a YAML stream and produceNode
-
-
-
Constructor Detail
-
Compose
public Compose(LoadSettings settings)
Create instance with providedLoadSettings- Parameters:
settings- - configuration
-
-
Method Detail
-
composeReader
public Optional<org.snakeyaml.engine.v2.nodes.Node> composeReader(Reader yaml)
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
Nodeif available - See Also:
- Processing Overview
-
composeInputStream
public Optional<org.snakeyaml.engine.v2.nodes.Node> composeInputStream(InputStream yaml)
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
Nodeif available - See Also:
- Processing Overview
-
composeString
public Optional<org.snakeyaml.engine.v2.nodes.Node> composeString(String yaml)
Parse a YAML stream and produceNode- Parameters:
yaml- - YAML document(s).- Returns:
- parsed
Nodeif available - See Also:
- Processing Overview
-
composeAllFromReader
public Iterable<org.snakeyaml.engine.v2.nodes.Node> composeAllFromReader(Reader yaml)
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:
- Processing Overview
-
composeAllFromInputStream
public Iterable<org.snakeyaml.engine.v2.nodes.Node> composeAllFromInputStream(InputStream yaml)
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:
- Processing Overview
-
composeAllFromString
public Iterable<org.snakeyaml.engine.v2.nodes.Node> composeAllFromString(String yaml)
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:
- Processing Overview
-
-