Armando, thank you for your reply.

Writing single value with
  void write(int c)
sends same 2 bytes for values larger than 127 as using
  void write(char[] cbuf, int off, int len)
of BufferedReader 
http://docs.oracle.com/javase/jp/6/api/java/io/BufferedWriter.html

Code:
  (require '[clojure.java.io :refer :all])
  (with-open [s (java.net.Socket. "*ip.of.test.server*" *port_of_test_server
*)]
    (let [^java.io.BufferedWriter wtr (writer s)]
      (doseq [i [0 1 127 128 255]]
        (.write wtr i))
      (.flush wtr)))
sends same bytes as code in my previous post.

I can't find other appropriate methods of BuffererdReader, Reader and 
OutputStreamReader
  http://docs.oracle.com/javase/jp/6/api/java/io/Writer.html
  http://docs.oracle.com/javase/jp/6/api/java/io/OutputStreamWriter.html
than
  void write(int c)
  void write(char[] cbuf)
  void write(char[] cbuf, int off, int len)
.

Does anyone have any information?
Thanks in advance.

Yoshinori Kohyama

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to