本文整理汇总了Java中org.yaml.snakeyaml.composer.Composer.getSingleNode方法的典型用法代码示例。如果您正苦于以下问题:Java Composer.getSingleNode方法的具体用法?Java Composer.getSingleNode怎么用?Java Composer.getSingleNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.yaml.snakeyaml.composer.Composer
的用法示例。
在下文中一共展示了Composer.getSingleNode方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: compose
import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
public Node compose(StreamReader yaml) {
Composer composer = new Composer(new ParserImpl(yaml), resolver);
constructor.setComposer(composer);
return composer.getSingleNode();
}
示例2: compose
import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
* Parse the first YAML document in a stream and produce the corresponding
* representation tree. (This is the opposite of the represent() method)
*
* @param yaml
* YAML document
*
* @return parsed root Node for the specified YAML document
*
* @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing Overview</a>
*/
public Node compose(Reader yaml)
{
Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), this.resolver);
this.constructor.setComposer(composer);
return composer.getSingleNode();
}
示例3: compose
import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
* Parse the first YAML document in a stream and produce the corresponding
* representation tree. (This is the opposite of the represent() method)
*
* @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing
* Overview</a>
* @param yaml
* YAML document
* @return parsed root Node for the specified YAML document
*/
public Node compose(Reader yaml) {
Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), resolver);
constructor.setComposer(composer);
return composer.getSingleNode();
}
示例4: compose
import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
* Parse the first YAML document in a stream and produce the corresponding
* representation tree. (This is the opposite of the represent() method)
*
* @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing
* Overview</a>
* @param yaml
* YAML document
* @return parsed root Node for the specified YAML document
*/
public Node compose(Reader yaml) {
Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), resolver);
constructor.setComposer(composer);
return composer.getSingleNode();
}
示例5: compose
import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
* Parse the first YAML document in a stream and produce the corresponding representation tree. (This is the opposite of the represent()
* method)
*
* @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing Overview</a>
* @param yaml
* YAML document
* @return parsed root Node for the specified YAML document
*/
public Node compose(final Reader yaml) {
Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), resolver);
constructor.setComposer(composer);
return composer.getSingleNode();
}