public class JsonTextAnalyzer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonTextAnalyzer.JsonAnalysis
Contains the results of the analysis of a json text file.
|
| Constructor and Description |
|---|
JsonTextAnalyzer()
Creates a new JSON analyzer with default settings.
|
| Modifier and Type | Method and Description |
|---|---|
JsonTextAnalyzer.JsonAnalysis |
analyze(Path file,
CharsetEncoding charsetSpec)
Analyzes the specified JSON file based on current configuration.
|
JsonTextAnalyzer.JsonAnalysis |
analyze(Path file,
CharsetEncoding charsetSpec,
FileClient client)
Analyzes the specified JSON file based on current configuration.
|
JsonTextAnalyzer.JsonAnalysis |
analyze(Reader input)
Analyzes the specified JSON file based on current configuration.
|
JsonTextAnalyzer.JsonAnalysis |
analyze(String file,
CharsetEncoding charsetSpec)
Analyzes the specified JSON file based on current configuration.
|
void |
setAnalysisSize(int count)
Sets the maximum number of characters to use in analysis.
|
void |
setJsonParserOptions(boolean[] options) |
public JsonTextAnalyzer()
public void setAnalysisSize(int count)
count - the number of characters to analyzepublic void setJsonParserOptions(boolean[] options)
public JsonTextAnalyzer.JsonAnalysis analyze(String file, CharsetEncoding charsetSpec) throws IOException
file - path to the delimited text file to analyzecharsetSpec - description of the file's character set encodingIOException - if an error occurs while reading the filepublic JsonTextAnalyzer.JsonAnalysis analyze(Path file, CharsetEncoding charsetSpec) throws IOException
file - path to the delimited text file to analyzecharsetSpec - description of the file's character set encodingIOException - if an error occurs while reading the filepublic JsonTextAnalyzer.JsonAnalysis analyze(Path file, CharsetEncoding charsetSpec, FileClient client) throws IOException
file - path to the delimited text file to analyzecharsetSpec - description of the file's character set encodingclient - the authorization context to use for accessing the fileIOException - if an error occurs while reading the filepublic JsonTextAnalyzer.JsonAnalysis analyze(Reader input) throws IOException
input - the text data to analyzeIOException - if an error occurs while reading the fileCopyright © 2021 Actian Corporation. All rights reserved.