File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -571,11 +571,11 @@ <h2><a name="StreamFactory">3.6. StreamFactory</a></h2>
571
571
572
572
< span class ="comment "> // create a BeanReader to read from 'in.txt'</ span >
573
573
Reader in = new BufferedReader(new FileReader("in.txt"));
574
- BeanReader beanReader = factory.createBeanReader ("streamName", in);
574
+ BeanReader beanReader = factory.createReader ("streamName", in);
575
575
576
576
< span class ="comment "> // create a BeanWriter to write to 'out.txt'</ span >
577
577
Writer out = new BufferedWriter(new FileWriter("out.txt"));
578
- BeanWriter beanWriter = factory.createBeanReader ("streamName", out);
578
+ BeanWriter beanWriter = factory.createWriter ("streamName", out);
579
579
580
580
< span class ="comment "> // create an Unmarshaller to unmarshal bean objects from record text</ span >
581
581
Unmarshaller unmarshaller = factory.createUnmarshaller("streamName");
@@ -5256,4 +5256,4 @@ <h1><a name="C">Appendix C: Upgrading a 1.x Mapping File Example</a></h1>
5256
5256
< br />
5257
5257
< br />
5258
5258
</ body >
5259
- </ html >
5259
+ </ html >
You can’t perform that action at this time.
0 commit comments