@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 GemSpecificationIOIOExceptionpublic String write(GemSpecification gemspec) throws IOException
write in interface GemSpecificationIOIOExceptionprotected org.yaml.snakeyaml.Yaml getYaml()
protected GemSpecification readGemSpecfromYaml(String gemspecString) throws IOException
IOExceptionprotected String writeGemSpectoYaml(GemSpecification gemspec) throws IOException
IOExceptionprotected GemSpecification readGemSpecfromYamlWithSnakeYaml(String gemspecString) throws IOException
IOExceptionprotected String writeGemSpectoYamlWithSnakeYaml(GemSpecification gemspec) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.