public class ARFFAnalyzer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ARFFAnalyzer.Analysis
Contains the results of analyzing an ARFF file.
|
Constructor and Description |
---|
ARFFAnalyzer() |
Modifier and Type | Method and Description |
---|---|
ARFFAnalyzer.Analysis |
analyze(Path file,
CharsetEncoding encoding)
Analyze the specified ARFF file expecting the described character set encoding.
|
ARFFAnalyzer.Analysis |
analyze(Path file,
CharsetEncoding encoding,
FileClient client)
Analyze the specified ARFF file expecting the described character set encoding.
|
ARFFAnalyzer.Analysis |
analyze(Reader input)
Analyze the given character stream as ARFF data.
|
ARFFAnalyzer.Analysis |
analyze(String file,
CharsetEncoding encoding)
Analyze the specified ARFF file expecting the described character set encoding.
|
public ARFFAnalyzer.Analysis analyze(String file, CharsetEncoding encoding) throws IOException, ParseException
file
- the file to analyze. This value will be interpreted using
Paths.asPath(String)
.encoding
- a specification of the character set encoding of the fileIOException
- if any I/O errors occur while reading the source fileParseException
- if the file cannot be parsed as ARFF or is otherwise
malformedpublic ARFFAnalyzer.Analysis analyze(Path file, CharsetEncoding encoding) throws IOException, ParseException
file
- the file to analyzeencoding
- a specification of the character set encoding of the fileIOException
- if any I/O errors occur while reading the source fileParseException
- if the file cannot be parsed as ARFF or is otherwise
malformedpublic ARFFAnalyzer.Analysis analyze(Path file, CharsetEncoding encoding, FileClient client) throws IOException, ParseException
file
- the file to analyzeencoding
- a specification of the character set encoding of the fileclient
- the authorization context to use for accessing the fileIOException
- if any I/O errors occur while reading the source fileParseException
- if the file cannot be parsed as ARFF or is otherwise
malformedpublic ARFFAnalyzer.Analysis analyze(Reader input) throws IOException, ParseException
input
- the data stream to analyzeIOException
- if any I/O errors occur while reading the source fileParseException
- if the file cannot be parsed as ARFF or is otherwise
malformedCopyright © 2020 Actian Corporation. All rights reserved.