Skip to content

Commit f224061

Browse files
committed
I'm bad a spelling
1 parent 9eb9fa3 commit f224061

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<p>Reading files from the classpath is a fairly common use case. Configuration files, HTML templates, CSV files and many more are all common use cases. This has always been a bit convoluted. The Java8 <code>Paths</code> and <code>Files</code> APIs made this a little simpler. Guava also has a few helper classes that make this very easy to acomplish.</p>
1+
<p>Reading files from the classpath is a fairly common use case. Configuration files, HTML templates, CSV files and many more are all common use cases. This has always been a bit convoluted. The Java8 <code>Paths</code> and <code>Files</code> APIs made this a little simpler. Guava also has a few helper classes that make this very easy to accomplish.</p>
22

33
<h2 class="anchored">Read Resource as String</h2>
4-
<p>Simple helper to load any resource on the classpath and convert it to a <code>String</code>. Here we are lazy and rethrow <code>IOException</code>'s as unchecked exceptions.</p>
4+
<p>Simple helper to load any resource on the classpath and convert it to a <code>String</code>. Here we are lazy and re-throw <code>IOException</code>'s as unchecked exceptions.</p>
55
{{> templates/src/widgets/code/code-snippet file=resources section=resources.sections.asString}}
6-
<p>Here it is in action usint a JUnit test.</p>
6+
<p>Here it is in action using a JUnit test.</p>
77
{{> templates/src/widgets/code/code-snippet file=tests section=tests.sections.asString}}
88

99
<h2 class="anchored">Read Resource as BufferedReader</h2>
1010
<p>Simple helper to load any resource on the classpath and convert it to a <code>BufferedReader</code>. <code>BufferedReader</code>'s are much better for large files. Ideally you won't have very large files included in your JAR and they will be loaded externally so this might not be extremely useful.</p>
1111
{{> templates/src/widgets/code/code-snippet file=resources section=resources.sections.asBufferedReader}}
12-
<p>Here it is in action usint a JUnit test.</p>
12+
<p>Here it is in action using a JUnit test.</p>
1313
{{> templates/src/widgets/code/code-snippet file=tests section=tests.sections.asBufferedReader}}

stubbornjava-webapp/ui/src/posts/undertow-writing-custom-httphandlers.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<p>HttpHandlers are the building blocks of Undertow. Luckily they are extremly easy to write. Here are a few different approaches that will be used throughout posts on this site.</p>
1+
<p>HttpHandlers are the building blocks of Undertow. Luckily they are extremely easy to write. Here are a few different approaches that will be used throughout posts on this site.</p>
22

33
<h2 class="anchored">Custom Class Implementing HttpHandler</h2>
4-
<p>This is generally the best option when writing middleware / filtering HttpHandlers that delegate reponsibility to other handlers or handlers with lots of code or complex logic.</p>
4+
<p>This is generally the best option when writing middleware / filtering HttpHandlers that delegate responsibility to other handlers or handlers with lots of code or complex logic.</p>
55
{{> templates/src/widgets/code/code-snippet file=handler section=handler.sections.handler}}
66
<p>Sometimes it is nice to then couple classes with static factory methods than can reduce boiler plate or group common handlers together. This will be used extensively in later posts. This is also used in Undertow Core's <a href="https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/Handlers.java#L71">Handlers.java</a>.</p>
77
{{> templates/src/widgets/code/code-snippet file=handlers section=handlers.sections.handler}}

0 commit comments

Comments
 (0)