pax_global_header 0000666 0000000 0000000 00000000064 12414026172 0014511 g ustar 00root root 0000000 0000000 52 comment=e3d2a9d5d55a5a5fe48db6a004bd1914d0da6ce0
jackson-dataformat-yaml-jackson-dataformat-yaml-2.4.3/ 0000775 0000000 0000000 00000000000 12414026172 0022735 5 ustar 00root root 0000000 0000000 jackson-dataformat-yaml-jackson-dataformat-yaml-2.4.3/.gitignore 0000664 0000000 0000000 00000000245 12414026172 0024726 0 ustar 00root root 0000000 0000000 # use glob syntax.
syntax: glob
*.class
*~
*.bak
*.off
*.old
.DS_Store
# building
target
# Eclipse
.classpath
.project
.settings
# IDEA
*.iml
*.ipr
*.iws
/target
jackson-dataformat-yaml-jackson-dataformat-yaml-2.4.3/README.md 0000664 0000000 0000000 00000004156 12414026172 0024222 0 ustar 00root root 0000000 0000000 # Overview
This project contains [Jackson](http://http://wiki.fasterxml.com/JacksonHome) extension component for reading and writing [YAML](http://en.wikipedia.org/wiki/YAML) encoded data.
[SnakeYAML](http://code.google.com/p/snakeyaml/) library is used for low-level YAML parsing.
This project adds necessary abstractions on top to make things work with other Jackson functionality.
Project is licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt).
# Status
Project is in its prototype phase, so:
* Basic parsing seems to work, as per basic unit tests
* Basic generation: not configurable, produces visually ok block format
* Even format auto-detection works! (can create `ObjectMapper` with multiple `JsonFactory` instances, give an `InputStream`, and it'll figure out what format content is in!)
Missing are:
* Not much configurability: might make sense to esp. allow configuration of generation details
* Support for YAML tags (which theoretically could help with typing), aliases and anchors (which would be good for Object Id, refs): ideally these would be supported. And it is possible in principle, no fundamental problems.
## Maven dependency
To use this extension on Maven-based projects, use following dependency:
```xml
com.fasterxml.jackson.dataformat
jackson-dataformat-yaml
2.4.0
```
# Usage
## Simple usage
Usage is as with basic `JsonFactory`; most commonly you will just construct a standard `ObjectMapper` with `com.fasterxml.jackson.dataformat.yaml.YAMLFactory`, like so:
```java
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
User user = mapper.readValue(yamlSource, User.class);
```
but you can also just use underlying `YAMLFactory` and parser it produces, for event-based processing:
```java
YAMLFactory factory = new YAMLFactory();
JsonParser parser = factory.createJsonParser(yamlString); // don't be fooled by method name...
while (parser.nextToken() != null) {
// do something!
}
```
# Documentation
* [Wiki](../../wiki) contains links to Javadocs, external documentation
jackson-dataformat-yaml-jackson-dataformat-yaml-2.4.3/contributor-agreement.pdf 0000664 0000000 0000000 00000130420 12414026172 0027747 0 ustar 00root root 0000000 0000000 %PDF-1.3
%
4 0 obj
<< /Length 5 0 R /Filter /FlateDecode >>
stream
xZr):'U)-צ6e'㤬@pH4 ˼O(\Yu $)e 13=_3_72o4[ؔ)-
s(ۿ4|S<=2LFOk?mUP.`OTtJiRdPDiBvފ87gfWZ 6