@Component(role=GemSpecificationIO.class, hint="yaml") public class YamlGemSpecificationIO extends Object implements GemSpecificationIO
Modifier and Type | Field and Description |
---|---|
protected org.yaml.snakeyaml.Yaml |
_yaml |
Constructor and Description |
---|
YamlGemSpecificationIO() |
Modifier and Type | Method and Description |
---|---|
protected org.yaml.snakeyaml.Yaml |
getYaml() |
GemSpecification |
read(String string) |
protected GemSpecification |
readGemSpecfromYaml(String gemspecString) |
protected GemSpecification |
readGemSpecfromYamlWithSnakeYaml(String gemspecString) |
String |
write(GemSpecification gemspec) |
protected String |
writeGemSpectoYaml(GemSpecification gemspec) |
protected String |
writeGemSpectoYamlWithSnakeYaml(GemSpecification gemspec) |
public GemSpecification read(String string) throws IOException
read
in interface GemSpecificationIO
IOException
public String write(GemSpecification gemspec) throws IOException
write
in interface GemSpecificationIO
IOException
protected org.yaml.snakeyaml.Yaml getYaml()
protected GemSpecification readGemSpecfromYaml(String gemspecString) throws IOException
IOException
protected String writeGemSpectoYaml(GemSpecification gemspec) throws IOException
IOException
protected GemSpecification readGemSpecfromYamlWithSnakeYaml(String gemspecString) throws IOException
IOException
protected String writeGemSpectoYamlWithSnakeYaml(GemSpecification gemspec) throws IOException
IOException
Copyright © 2017. All rights reserved.