Liking cljdoc? Tell your friends :D

tupelo.io

Read/Write using DataInputStream/DataOutputStream & InputStream/OutputStream

Read/Write using DataInputStream/DataOutputStream & InputStream/OutputStream
raw docstring

create-temp-fileclj

(create-temp-file id-str)

Inputs: [id-str :- s/Str] Returns: java.io.File

Given a unique ID string (e.g. 'my.dummy.file'), returns a java File object for a temporary that will be deleted upon JVM exit.

Inputs: [id-str :- s/Str]
Returns: java.io.File

Given a unique ID string (e.g. 'my.dummy.file'), returns a java File object
for a temporary that will be deleted upon JVM exit.
sourceraw docstring

data-input-stream?clj

(data-input-stream? arg)

Inputs: [arg]

Returns true if arg implements java.io.DataInputStream

Inputs: [arg]

Returns true if arg implements java.io.DataInputStream
sourceraw docstring

data-output-stream?clj

(data-output-stream? arg)

Inputs: [arg]

Returns true if arg implements java.io.DataOutputStream

Inputs: [arg]

Returns true if arg implements java.io.DataOutputStream
sourceraw docstring

input-stream?clj

(input-stream? arg)

Inputs: [arg]

Returns true if arg implements java.io.InputStream

Inputs: [arg]

Returns true if arg implements java.io.InputStream
sourceraw docstring

output-stream?clj

(output-stream? arg)

Inputs: [arg]

Returns true if arg implements java.io.OutputStream

Inputs: [arg]

Returns true if arg implements java.io.OutputStream
sourceraw docstring

read-byteclj

(read-byte dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 1 byte (signed) from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 1 byte (signed) from a DataInputStream
sourceraw docstring

read-byte-unsignedclj

(read-byte-unsigned dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 1 byte (unsigned) from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 1 byte (unsigned) from a DataInputStream
sourceraw docstring

read-bytesclj

(read-bytes N input-stream)

Inputs: [N :- s/Int input-stream :- InputStream]

Reads N bytes from a DataInputStream, returning a byte array.

Inputs: [N :- s/Int input-stream :- InputStream]

Reads N bytes from a DataInputStream, returning a byte array.
sourceraw docstring

read-doubleclj

(read-double dis)

Inputs: [dis :- DataInputStream] Returns: s/Num

Reads an 8 byte double-precision floating-point value from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Num

Reads an 8 byte double-precision floating-point value from a DataInputStream
sourceraw docstring

read-floatclj

(read-float dis)

Inputs: [dis :- DataInputStream] Returns: s/Num

Reads a 4 byte single-precision floating-point value from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Num

Reads a 4 byte single-precision floating-point value from a DataInputStream
sourceraw docstring

read-integerclj

(read-integer dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 4 bytes (signed) from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 4 bytes (signed) from a DataInputStream
sourceraw docstring

read-integer-unsignedclj

(read-integer-unsigned dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 4 bytes (unsigned) from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 4 bytes (unsigned) from a DataInputStream
sourceraw docstring

read-longclj

(read-long dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 8 bytes (signed) from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 8 bytes (signed) from a DataInputStream
sourceraw docstring

read-long-unsignedclj

(read-long-unsigned dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 8 bytes (unsigned) from a DataInputStream, returning a BigInteger

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 8 bytes (unsigned) from a DataInputStream, returning a BigInteger
sourceraw docstring

read-shortclj

(read-short dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 2 bytes (signed) from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 2 bytes (signed) from a DataInputStream
sourceraw docstring

read-short-unsignedclj

(read-short-unsigned dis)

Inputs: [dis :- DataInputStream] Returns: s/Int

Reads 2 bytes (unsigned) from a DataInputStream

Inputs: [dis :- DataInputStream]
Returns: s/Int

Reads 2 bytes (unsigned) from a DataInputStream
sourceraw docstring

read-string-bytesclj

(read-string-bytes nchars dis)

Inputs: [nchars :- s/Int dis :- DataInputStream] Returns: s/Str

Reads nchars bytes from a DataInputStream, returning a String.

Inputs: [nchars :- s/Int dis :- DataInputStream]
Returns: s/Str

Reads nchars bytes from a DataInputStream, returning a String.
sourceraw docstring

write-byteclj

(write-byte dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 1 byte (signed) to a DataOutputStream.

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 1 byte (signed) to a DataOutputStream.
sourceraw docstring

write-byte-unsignedclj

(write-byte-unsigned dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 1 byte (unsigned) to a DataOutputStream

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 1 byte (unsigned) to a DataOutputStream
sourceraw docstring

write-bytesclj

(write-bytes out-stream bytarr)

Inputs: [out-stream :- OutputStream bytarr :- s/Any]

Writes a byte array to a DataInputStream.

Inputs: [out-stream :- OutputStream bytarr :- s/Any]

Writes a byte array to a DataInputStream.
sourceraw docstring

write-doubleclj

(write-double dos val)

Inputs: [dos :- DataOutputStream val :- s/Num] Returns: s/Num

Writes an 8 byte double-precision floating-point value to a DataInputStream

Inputs: [dos :- DataOutputStream val :- s/Num]
Returns: s/Num

Writes an 8 byte double-precision floating-point value to a DataInputStream
sourceraw docstring

write-floatclj

(write-float dos val)

Inputs: [dos :- DataOutputStream val :- s/Num] Returns: s/Num

Writes a 4 byte single-precision floating-point value to a DataInputStream

Inputs: [dos :- DataOutputStream val :- s/Num]
Returns: s/Num

Writes a 4 byte single-precision floating-point value to a DataInputStream
sourceraw docstring

write-integerclj

(write-integer dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 4 bytes (signed) to a DataOutputStream

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 4 bytes (signed) to a DataOutputStream
sourceraw docstring

write-integer-unsignedclj

(write-integer-unsigned dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 4 bytes (signed) to a DataOutputStream

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 4 bytes (signed) to a DataOutputStream
sourceraw docstring

write-longclj

(write-long dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 8 bytes (signed) to a DataOutputStream

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 8 bytes (signed) to a DataOutputStream
sourceraw docstring

write-long-unsignedclj

(write-long-unsigned dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 8 bytes (unsigned) to a DataOutputStream

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 8 bytes (unsigned) to a DataOutputStream
sourceraw docstring

write-shortclj

(write-short dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 2 bytes (signed) to a DataOutputStream

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 2 bytes (signed) to a DataOutputStream
sourceraw docstring

write-short-unsignedclj

(write-short-unsigned dos val)

Inputs: [dos :- DataOutputStream val :- s/Int] Returns: s/Int

Writes 2 bytes (unsigned) to a DataOutputStream

Inputs: [dos :- DataOutputStream val :- s/Int]
Returns: s/Int

Writes 2 bytes (unsigned) to a DataOutputStream
sourceraw docstring

write-string-bytesclj

(write-string-bytes dos str-val)

Inputs: [dos :- DataOutputStream str-val :- s/Str] Returns: s/Str

Converts an ASCII String to bytes and writes them to a DataInputStream (w/o length header).

Inputs: [dos :- DataOutputStream str-val :- s/Str]
Returns: s/Str

Converts an ASCII String to bytes and writes them to a DataInputStream (w/o length header).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close