Liking cljdoc? Tell your friends :D

heuristomancer.core


-mainclj

(-main & args)
source

bytes->stringcljmultimethod

Converts a byte array to a string depending on the type of parser.

Converts a byte array to a string depending on the type of parser.
sourceraw docstring

format-matchesclj

(format-matches sample [_ identifier-fn converter])

Determines whether a format matches a sample from a file.

Determines whether a format matches a sample from a file.
sourceraw docstring

formatsclj

source

identifyclj

(identify in)
(identify in sample-size)

Attempts to identify the type of a sample obtained from anything that clojure.java.io/reader can convert to a reader.

Attempts to identify the type of a sample obtained from anything that clojure.java.io/reader
can convert to a reader.
sourceraw docstring

identify-one-rowclj

(identify-one-row column-number sample-size csv-data)

Pulls the path out of column-number of csv-data, and then identifies with sample-size and returns the CSV data with the type added as an additional column (using 'unknown' if no type was detected). Returns nil if the file does not exist.

Pulls the path out of `column-number` of `csv-data`, and then identifies
with `sample-size` and returns the CSV data with the type added as an
additional column (using 'unknown' if no type was detected). Returns nil if
the file does not exist.
sourceraw docstring

identify-sampleclj

(identify-sample sample)

Attempts to identify the type of a sample.

Attempts to identify the type of a sample.
sourceraw docstring

list-formatsclj

(list-formats)

Lists all of the formats currently recognized by this utility.

Lists all of the formats currently recognized by this utility.
sourceraw docstring

parse-argsclj

(parse-args args)

Parses the command-line arguments.

Parses the command-line arguments.
sourceraw docstring

process-csvclj

(process-csv sample-size column-number csv-path output-path)
source

show-file-typeclj

(show-file-type sample-size path)

Shows the type of a single file or 'UNRECOGNIZED' if the file type can't be identified.

Shows the type of a single file or 'UNRECOGNIZED' if the file type can't be identified.
sourceraw docstring

show-file-typesclj

(show-file-types sample-size paths)

Shows the types of a sequence of files.

Shows the types of a sequence of files.
sourceraw docstring

sipclj

(sip input-stream limit)

Reads in 'limit' number of bytes from input-stream. Returns a byte-array.

Reads in 'limit' number of bytes from input-stream. Returns a byte-array.
sourceraw docstring

supported-formatsclj

(supported-formats)

Returns a list of the formats currently recognized by heuristomancer. Returns the list in the order of evaluation when iterating over the parsers when attempting to id a file.

Returns a list of the formats currently recognized by heuristomancer. Returns the list
in the order of evaluation when iterating over the parsers when attempting to id a file.
sourceraw docstring

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

× close