Class Parse
java.lang.Object
org.snakeyaml.engine.v2.api.lowlevel.Parse
Read the input stream and parse the content into events (opposite for Present or Emit)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseInputStream
(InputStream yaml) Parse a YAML stream and produce parsing events.parseReader
(Reader yaml) Parse a YAML stream and produce parsing events.parseString
(String yaml) Parse a YAML stream and produce parsing events.
-
Field Details
-
settings
-
-
Constructor Details
-
Parse
Create instance with providedLoadSettings
- Parameters:
settings
- - configuration
-
-
Method Details
-
parseInputStream
Parse a YAML stream and produce parsing events.- 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 events
- See Also:
-
parseReader
Parse a YAML stream and produce parsing events. Since the encoding is already known the BOM must not be present (it will be parsed as content)- Parameters:
yaml
- - YAML document(s).- Returns:
- parsed events
- See Also:
-
parseString
Parse a YAML stream and produce parsing events.- Parameters:
yaml
- - YAML document(s). The BOM must not be present (it will be parsed as content)- Returns:
- parsed events
- See Also:
-