public class FormatAnalyzer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FormatAnalyzer.FormatAnalysis
Contains the results of analyzing a file.
|
Constructor and Description |
---|
FormatAnalyzer() |
Modifier and Type | Method and Description |
---|---|
FormatAnalyzer.FormatAnalysis |
analyze(Path file,
CharsetEncoding encoding)
Analyze the specified file expecting the described character set encoding.
|
FormatAnalyzer.FormatAnalysis |
analyze(Path file,
CharsetEncoding encoding,
FileClient client)
Analyze the specified file expecting the described character set encoding.
|
FormatAnalyzer.FormatAnalysis |
analyze(Reader input)
Analyze the given character stream as log data.
|
FormatAnalyzer.FormatAnalysis |
analyze(String file,
CharsetEncoding encoding)
Analyze the specified file expecting the described character set encoding.
|
public FormatAnalyzer.FormatAnalysis 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 or is otherwise malformedpublic FormatAnalyzer.FormatAnalysis 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 or is otherwise malformedpublic FormatAnalyzer.FormatAnalysis 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 or is otherwise malformedpublic FormatAnalyzer.FormatAnalysis 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 or is otherwise malformedCopyright © 2016 Actian Corporation. All rights reserved.