(String source, String needle)
| 94 | } |
| 95 | |
| 96 | private String findBlock(String source, String needle){ |
| 97 | String block = ""; |
| 98 | int start =source.indexOf("<"+needle+">"); |
| 99 | int end = source.indexOf("</"+needle+">"); |
| 100 | if (start<0 || end<0) |
| 101 | return block; |
| 102 | return source.substring(start+3, end); |
| 103 | } |
| 104 | |
| 105 | private String readFile(String arhPath){ |
| 106 | FileIO f = FileIO.createConnection(arhPath); |