Package com.amihaiemil.eoyaml
Interface YamlInput
-
public interface YamlInputYaml input.- Since:
- 1.0.0
- Version:
- $Id: b2f1463fc24dde66e8e44f98ed2bd40afd37ba56 $
- Author:
- Mihai Andronache (amihaiemil@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScalarreadFoldedBlockScalar()Read the given input as a folded block scalar.ScalarreadLiteralBlockScalar()Read the given input as a literal block scalar.ScalarreadPlainScalar()Read the given input as a plain scalar.YamlMappingreadYamlMapping()Read the given input as a Yaml mapping.YamlSequencereadYamlSequence()Read the given input as a Yaml sequence.YamlStreamreadYamlStream()Read the given input as a Yaml stream.
-
-
-
Method Detail
-
readYamlMapping
YamlMapping readYamlMapping() throws IOException
Read the given input as a Yaml mapping.- Returns:
- Read YamlMapping.
- Throws:
IOException- if the input cannot be read for some reason
-
readYamlSequence
YamlSequence readYamlSequence() throws IOException
Read the given input as a Yaml sequence.- Returns:
- Read YamlSequence.
- Throws:
IOException- if the input cannot be read for some reason
-
readYamlStream
YamlStream readYamlStream() throws IOException
Read the given input as a Yaml stream.- Returns:
- Read YamlStream.
- Throws:
IOException- if the input cannot be read for some reason
-
readPlainScalar
Scalar readPlainScalar() throws IOException
Read the given input as a plain scalar. e.g.--- lonelyScalar ...
- Returns:
- Read Scalar.
- Throws:
IOException- if the input cannot be read for some reason
-
readFoldedBlockScalar
Scalar readFoldedBlockScalar() throws IOException
Read the given input as a folded block scalar. e.g.--- > Long scalar which has been folded for readability ...
- Returns:
- Read Scalar.
- Throws:
IOException- if the input cannot be read for some reason
-
readLiteralBlockScalar
Scalar readLiteralBlockScalar() throws IOException
Read the given input as a literal block scalar. e.g.--- | line1 line2 line3 ...
- Returns:
- Read Scalar.
- Throws:
IOException- if the input cannot be read for some reason
-
-