com.khubla.pragmatach.plugin.yaml
Class PragmatachYAML

java.lang.Object
  extended by com.khubla.pragmatach.plugin.yaml.PragmatachYAML

public class PragmatachYAML
extends Object

Author:
tome

Constructor Summary
PragmatachYAML()
           
 
Method Summary
static void fromYAML(Object object, InputStream inputStream)
          convert object from YAML
static void fromYAML(Object object, String YAML)
          convert object from YAML
static Map<String,String> parseYAML(InputStream inputStream)
          parse YAML to map
static Map<String,String> parseYAML(String YAML)
          parse YAML to map
static String toYAML(Object object)
          convert object to YAML
static void toYAML(Object object, OutputStream outputStream)
          convert object to YAML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PragmatachYAML

public PragmatachYAML()
Method Detail

fromYAML

public static void fromYAML(Object object,
                            InputStream inputStream)
                     throws PragmatachException
convert object from YAML

Throws:
PragmatachException

fromYAML

public static void fromYAML(Object object,
                            String YAML)
                     throws PragmatachException
convert object from YAML

Throws:
PragmatachException

parseYAML

public static Map<String,String> parseYAML(InputStream inputStream)
                                    throws PragmatachException
parse YAML to map

Throws:
PragmatachException

parseYAML

public static Map<String,String> parseYAML(String YAML)
                                    throws PragmatachException
parse YAML to map

Throws:
PragmatachException

toYAML

public static String toYAML(Object object)
                     throws PragmatachException
convert object to YAML

Throws:
PragmatachException

toYAML

public static void toYAML(Object object,
                          OutputStream outputStream)
                   throws PragmatachException
convert object to YAML

Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.