           {}
           types))
 
+(defn read-handler-map
+  [custom-handlers]
+  (TransitFactory/readHandlerMap custom-handlers))
+
+(defn write-handler-map
+  [custom-handlers]
+  (TransitFactory/writeHandlerMap custom-handlers))
+
 (comment
 
   (require 'cognitect.transit)

  (def in (ByteArrayInputStream. (.toByteArray out)))
  (def r (reader in :json {:handlers ext-read-handlers}))
  (read r)
  )


  (def w (writer out :json))
  (def w (writer out :json-verbose))
  (def w (writer out :msgpack))

  (write w "foo")
