Home / Function/ addWordsFromFile() — netty Function Reference

addWordsFromFile() — netty Function Reference

Architecture documentation for the addWordsFromFile() function in HashCollisionTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  48563d23_b563_7f71_5ec9_a6538fc1835e["addWordsFromFile()"]
  7f4340a8_96bd_ab16_3f24_b4cd9d2cac42["HashCollisionTest"]
  48563d23_b563_7f71_5ec9_a6538fc1835e -->|defined in| 7f4340a8_96bd_ab16_3f24_b4cd9d2cac42
  d3f29c04_06bf_6ce4_7812_c30e675e84d2["main()"]
  d3f29c04_06bf_6ce4_7812_c30e675e84d2 -->|calls| 48563d23_b563_7f71_5ec9_a6538fc1835e
  style 48563d23_b563_7f71_5ec9_a6538fc1835e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/HashCollisionTest.java lines 103–117

    private static void addWordsFromFile(File file, List<CharSequence> values)
            throws IllegalAccessException, IOException {
        BufferedReader br = new BufferedReader(new FileReader(file));
        try {
            String line;
            while ((line = br.readLine()) != null) {
                // Make a "best effort" to prune input which contains characters that are not valid in HTTP header names
                if (line.indexOf('\'') < 0) {
                    values.add(line);
                }
            }
        } finally {
            br.close();
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does addWordsFromFile() do?
addWordsFromFile() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HashCollisionTest.java.
Where is addWordsFromFile() defined?
addWordsFromFile() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HashCollisionTest.java at line 103.
What calls addWordsFromFile()?
addWordsFromFile() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free