Class 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 Detail

      • _yaml

        protected org.yaml.snakeyaml.Yaml _yaml
    • Constructor Detail

      • YamlGemSpecificationIO

        public YamlGemSpecificationIO()
    • Method Detail

      • 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