You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* release/0.6.0:
README: show version 0.6.0
build as 0.6.0
tune travis config
git ignores
gradle coordinates
typos
update a few dependencies to newer versions
drop Java 6 Support.
You'll need to create a Parser and supply it with some input. Factory methods to create Parseable input are provided which accept either a `java.lang.CharSequence` or a `java.lang.Readable`. You can then call `nextValue()` on the Parser to get values form the input. When the input is exhausted, `nextValue()` will return `Parser.END_OF_INPUT`.
@@ -59,7 +63,7 @@ Most *edn* values map to regular Java types, except in such cases where Java doe
59
63
60
64
Integers map to, `Long` or `BigInteger` depending on the magnitude of the number. Appending `N` to an integer literal maps to `BigInteger` irrespective of the magnitude.
61
65
62
-
Floating point numbers with the suffix `M` are mapeped to `BigDecimal`. All others are mapped to `Double`.
66
+
Floating point numbers with the suffix `M` are mapped to `BigDecimal`. All others are mapped to `Double`.
63
67
64
68
Characters are mapped to `Character`, booleans to `Boolean` and strings to `String`. No great shock there, I trust.
65
69
@@ -130,7 +134,7 @@ The package `us.bpsm.edn.parser` makes three handlers for `#inst` available:
130
134
131
135
-`InstantToDate` is the default and converts each `#inst` to a `java.util.Date`.
132
136
-`InstantToCalendar` converts each `#inst` to a `java.util.Calendar`, which preserves the original GTM offset.
133
-
-`InstantToTimestamp` converts each `#inst` to a `java.sql.Timstamp`, which presrves nanoseconds.
137
+
-`InstantToTimestamp` converts each `#inst` to a `java.sql.Timstamp`, which preserves nanoseconds.
134
138
135
139
Extend `AbstractInstantHandler` to provide your own implementation of `#inst`.
136
140
@@ -356,5 +360,5 @@ public class CustomTagPrinter {
356
360
### Limitations
357
361
358
362
- Edn values must be *acyclic*. Any attempt to print a data structure containing cycles will surely end in a stack overflow.
359
-
- The current Printing support stikes me a as a bit of a hack. The API may change with 1.0.0.
363
+
- The current Printing support strikes me a as a bit of a hack. The API may change with 1.0.0.
360
364
- Edn-Java does not provide much by way of "convenience" methods. As a library it's still to young to really know what would be convenient, though I'm open to suggestions.
0 commit comments