@Component(role=GemSpecificationIO.class, hint="yaml") public class YamlGemSpecificationIO extends java.lang.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(java.lang.String string) |
protected GemSpecification |
readGemSpecfromYaml(java.lang.String gemspecString) |
protected GemSpecification |
readGemSpecfromYamlWithSnakeYaml(java.lang.String gemspecString) |
java.lang.String |
write(GemSpecification gemspec) |
protected java.lang.String |
writeGemSpectoYaml(GemSpecification gemspec) |
protected java.lang.String |
writeGemSpectoYamlWithSnakeYaml(GemSpecification gemspec) |
public GemSpecification read(java.lang.String string) throws java.io.IOException
read in interface GemSpecificationIOjava.io.IOExceptionpublic java.lang.String write(GemSpecification gemspec) throws java.io.IOException
write in interface GemSpecificationIOjava.io.IOExceptionprotected org.yaml.snakeyaml.Yaml getYaml()
protected GemSpecification readGemSpecfromYaml(java.lang.String gemspecString) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String writeGemSpectoYaml(GemSpecification gemspec) throws java.io.IOException
java.io.IOExceptionprotected GemSpecification readGemSpecfromYamlWithSnakeYaml(java.lang.String gemspecString) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String writeGemSpectoYamlWithSnakeYaml(GemSpecification gemspec) throws java.io.IOException
java.io.IOExceptionCopyright © 2023. All Rights Reserved.