Revize b0a449f3
Přidáno uživatelem Michal Horký před asi 5 roky(ů)
- ID b0a449f3c66d71a35f8483d65bce056f4237f4dd
- Rodič 075865ee
project/Deserializer/src/Converter.java | ||
---|---|---|
111 | 111 |
String html = ""; |
112 | 112 |
|
113 | 113 |
//Redirectovany system.out do null streamu. Mozno redirect do souboru |
114 |
System.setOut(new PrintStream(OutputStream.nullOutputStream())); |
|
114 |
System.setOut(new PrintStream(new OutputStream() { |
|
115 |
public void write(int b) { |
|
116 |
// TODO nejspise do souboru. |
|
117 |
} |
|
118 |
})); |
|
115 | 119 |
System.out.println("TEST STRING NOT SHOWING"); |
116 | 120 |
jdeserialize deserializer = new jdeserialize(buffer); |
117 | 121 |
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out))); |
... | ... | |
130 | 134 |
html += cnt.toJson("", null, this.htmlFormatting); |
131 | 135 |
} |
132 | 136 |
} |
133 |
|
|
134 |
System.out.println("Task completed."); |
|
135 |
|
|
136 |
//just for tests |
|
137 |
System.out.println(json); |
|
138 |
System.out.println("*********************\n"); |
|
139 |
System.out.println(html); |
|
140 | 137 |
|
141 | 138 |
return new Pair<String, String>(json, html); |
142 | 139 |
} |
project/Deserializer/src/jdeserialize/classdesc.java | ||
---|---|---|
256 | 256 |
// v this.fielddata najit element, jehoz key == classdesc |
257 | 257 |
// v tomto prvku fielddata najdu value (element) podle key == f |
258 | 258 |
// jeho value je chtena hodnota |
259 |
var locVal = fielddata.get(this).get(f);
|
|
259 |
Object locVal = fielddata.get(this).get(f);
|
|
260 | 260 |
|
261 | 261 |
if(locVal instanceof content) |
262 | 262 |
{ |
Také k dispozici: Unified diff
re #7879
Zkouška pro oboustranné spojení mezi commitem a úlohou.