de.saumya.mojo.gems.spec.yaml
Class YamlGemSpecificationIO
java.lang.Object
de.saumya.mojo.gems.spec.yaml.YamlGemSpecificationIO
- All Implemented Interfaces:
- GemSpecificationIO
@Component(role=GemSpecificationIO.class,
hint="yaml")
public class YamlGemSpecificationIO- extends java.lang.Object
- implements GemSpecificationIO
This is here just be able to quickly switch between snakeYaml and YamlBeans,
since they are both good, with their own quirks. SnakeYaml won ;) So we can
clear up this later.
- Author:
- cstamas
|
Field Summary |
protected org.yaml.snakeyaml.Yaml |
_yaml
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_yaml
protected org.yaml.snakeyaml.Yaml _yaml
YamlGemSpecificationIO
public YamlGemSpecificationIO()
read
public GemSpecification read(java.lang.String string)
throws java.io.IOException
- Specified by:
read in interface GemSpecificationIO
- Throws:
java.io.IOException
write
public java.lang.String write(GemSpecification gemspec)
throws java.io.IOException
- Specified by:
write in interface GemSpecificationIO
- Throws:
java.io.IOException
getYaml
protected org.yaml.snakeyaml.Yaml getYaml()
readGemSpecfromYaml
protected GemSpecification readGemSpecfromYaml(java.lang.String gemspecString)
throws java.io.IOException
- Throws:
java.io.IOException
writeGemSpectoYaml
protected java.lang.String writeGemSpectoYaml(GemSpecification gemspec)
throws java.io.IOException
- Throws:
java.io.IOException
readGemSpecfromYamlWithSnakeYaml
protected GemSpecification readGemSpecfromYamlWithSnakeYaml(java.lang.String gemspecString)
throws java.io.IOException
- Throws:
java.io.IOException
writeGemSpectoYamlWithSnakeYaml
protected java.lang.String writeGemSpectoYamlWithSnakeYaml(GemSpecification gemspec)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011. All Rights Reserved.