| Package | Description |
|---|---|
| us.bpsm.edn.printer |
This package provides a Printer to convert values to edn text.
|
| Modifier and Type | Method and Description |
|---|---|
static Protocol<Printer.Fn<?>> |
Printers.defaultPrinterProtocol()
Return the default printer
Protocol. |
static Protocol.Builder<Printer.Fn<?>> |
Printers.defaultProtocolBuilder()
Returns a
Protocol.Builder
configured to produce a Protocol which knows how to print
these types of values:
BigDecimal
BigInteger
Boolean
Byte (as an integer)
CharSequence (as a string literal)
Character (as a character literal)
Date (as #inst)
Double
Float
GregorianCalendar (as #inst)
Integer
Keyword
List
Long
Map
Set
Short (as an integer)
Symbol
Tag
TaggedValue
Timestamp (as #inst)
UUID (as #uuid)
|
static Protocol<Printer.Fn<?>> |
Printers.prettyPrinterProtocol() |
static Protocol.Builder<Printer.Fn<?>> |
Printers.prettyProtocolBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static Printer |
Printers.newPrinter(Protocol<Printer.Fn<?>> fns,
Appendable out)
Return a new Printer with the printing protocol given as
fns. |
static String |
Printers.printString(Protocol<Printer.Fn<?>> fns,
Object ednValue)
Print
ednValue to a new String using the printing
protocol given as fns. |
Copyright © 2019. All rights reserved.