| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 63c5346 commit d35bede
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,8 +60,10 @@ public Part getFile() { | |||
| 60 | 60 | } | |
| 61 | 61 | ||
| 62 | 62 | public void setFile(Part file) { | |
| 63 | + System.out.println("Got file ..."); | ||
| 63 | 64 | this.file = file; | |
| 64 | 65 | if (null != file) { | |
| 66 | + System.out.println("... and trying to read it ..."); | ||
| 65 | 67 | try { | |
| 66 | 68 | BufferedReader reader = new BufferedReader(new InputStreamReader(file.getInputStream())); | |
| 67 | 69 | String string = reader.readLine(); | |
@@ -72,12 +74,16 @@ public void setFile(Part file) { | |||
| 72 | 74 | } | |
| 73 | 75 | text = builder.toString(); | |
| 74 | 76 | } catch (IOException ex) { | |
| 75 | - | ||
| 77 | + ex.printStackTrace(System.err); | ||
| 76 | 78 | } | |
| 79 | + System.out.println("... completed reading file."); | ||
| 80 | + } else { | ||
| 81 | + System.out.println("... but its null."); | ||
| 77 | 82 | } | |
| 78 | 83 | } | |
| 79 | 84 | ||
| 80 | 85 | public String getText() { | |
| 86 | + System.out.println("Complete text: " + text); | ||
| 81 | 87 | return text; | |
| 82 | 88 | } | |
| 83 | 89 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments