...
Code Block | ||
---|---|---|
| ||
try { DataInputStream dis = null; try { dis = new DataInputStream(new FileInputStream("data")); // Little-endian data might be read as big-endian int serialNumber = dis.readInt(); } catch (IOException x) { // handle error } finally { if (dis != null) { try { dis.close(); } catch (IOException e) { // handle error } } } } |
Compliant Solution (ByteBuffer
)
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5fb8334cf3e24f51-6eec8fb4-4c5141a9-b5929c42-37faa5361f0b2ff5647d6520"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. References#API 06]] | [Class | http://download.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html]: Methods | http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html]: method | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="51d7d3339114f8fb-26cbef2d-409546ba-9f30a646-542b742115d01c3000a3d324"><ac:plain-text-body><![CDATA[ | [[Cohen 1981 | AA. References#Cohen 81]] | On Holy Wars and a Plea for Peace | ]]></ac:plain-text-body></ac:structured-macro> | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="282a967aa604fa22-b1c0047b-4eaf4a81-998fa197-673e9d75beef66ae8f6a9e74"><ac:plain-text-body><![CDATA[ | [[Harold 1997 | AA. References#Harold 97]] | Chapter 2, Primitive Data Types, Cross-Platform Issues | ]]></ac:plain-text-body></ac:structured-macro> |
...