Parser Type — netty Architecture
Architecture documentation for the Parser type/interface in HostsFileEntriesProvider.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5e78f459_fb4f_60e4_9bc0_2c22c1777742["Parser"] cbcfc99c_b17c_c5dd_a391_ae0983e567df["HostsFileEntriesProvider.java"] 5e78f459_fb4f_60e4_9bc0_2c22c1777742 -->|defined in| cbcfc99c_b17c_c5dd_a391_ae0983e567df style 5e78f459_fb4f_60e4_9bc0_2c22c1777742 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver/src/main/java/io/netty/resolver/HostsFileEntriesProvider.java lines 47–115
public interface Parser {
/**
* Parses the hosts file at standard OS location using the system default {@link Charset} for decoding.
*
* @return a new {@link HostsFileEntriesProvider}
* @throws IOException file could not be read
*/
HostsFileEntriesProvider parse() throws IOException;
/**
* Parses the hosts file at standard OS location using the given {@link Charset}s one after another until
* parse something or none is left.
*
* @param charsets the {@link Charset}s to try as file encodings when parsing
* @return a new {@link HostsFileEntriesProvider}
* @throws IOException file could not be read
*/
HostsFileEntriesProvider parse(Charset... charsets) throws IOException;
/**
* Parses the provided hosts file using the given {@link Charset}s one after another until
* parse something or none is left. In case {@link Charset}s are not provided,
* the system default {@link Charset} is used for decoding.
*
* @param file the file to be parsed
* @param charsets the {@link Charset}s to try as file encodings when parsing, in case {@link Charset}s
* are not provided, the system default {@link Charset} is used for decoding
* @return a new {@link HostsFileEntriesProvider}
* @throws IOException file could not be read
*/
HostsFileEntriesProvider parse(File file, Charset... charsets) throws IOException;
/**
* Performs the parsing operation using the provided reader of hosts file format.
*
* @param reader the reader of hosts file format
* @return a new {@link HostsFileEntriesProvider}
*/
HostsFileEntriesProvider parse(Reader reader) throws IOException;
/**
* Parses the hosts file at standard OS location using the system default {@link Charset} for decoding.
*
* @return a new {@link HostsFileEntriesProvider}
*/
HostsFileEntriesProvider parseSilently();
/**
* Parses the hosts file at standard OS location using the given {@link Charset}s one after another until
* parse something or none is left.
*
* @param charsets the {@link Charset}s to try as file encodings when parsing
* @return a new {@link HostsFileEntriesProvider}
*/
HostsFileEntriesProvider parseSilently(Charset... charsets);
/**
* Parses the provided hosts file using the given {@link Charset}s one after another until
* parse something or none is left. In case {@link Charset}s are not provided,
* the system default {@link Charset} is used for decoding.
*
* @param file the file to be parsed
* @param charsets the {@link Charset}s to try as file encodings when parsing, in case {@link Charset}s
* are not provided, the system default {@link Charset} is used for decoding
* @return a new {@link HostsFileEntriesProvider}
*/
HostsFileEntriesProvider parseSilently(File file, Charset... charsets);
}
Source
Frequently Asked Questions
What is the Parser type?
Parser is a type/interface in the netty codebase, defined in resolver/src/main/java/io/netty/resolver/HostsFileEntriesProvider.java.
Where is Parser defined?
Parser is defined in resolver/src/main/java/io/netty/resolver/HostsFileEntriesProvider.java at line 47.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free