我正在阅读 Programming Clojure 并在 src/examples/gulp.clj 遇到以下代码。我无法理解 StringBuilder、FileInputStream 等之后的点是什么意思 -
(ns examples.gulp
(:import (java.io FileInputStream InputStreamReader BufferedReader)))
(defn gulp [src]
(let [sb (StringBuilder.)]
(with-open [reader (-> src
FileInputStream.
InputStreamReader.
BufferedReader.)]
(loop [c (.read reader)]
(if (neg? c)
(str sb)
(do
(.append sb (char c))
(recur (.read reader))))))))
任何人都可以请阐明一些光。