Produced by Araxis Merge on 7/10/2017 1:01:44 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\ImagingCommon\main\test\java\gov\va\med\imaging | SerializationDeserialization.java | Thu Jun 29 17:22:57 2017 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\ImagingCommon\main\test\java\gov\va\med\imaging | SerializationDeserialization.java | Thu Jul 6 15:02:43 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 140 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /** | |
| 2 | * | |
| 3 | */ | |
| 4 | package go v.va.med.i maging; | |
| 5 | ||
| 6 | import jav a.beans.XM LDecoder; | |
| 7 | import jav a.beans.XM LEncoder; | |
| 8 | ||
| 9 | /** | |
| 10 | * @author
|
|
| 11 | * | |
| 12 | */ | |
| 13 | public cla ss Seriali zationDese rializatio n<T> | |
| 14 | { | |
| 15 | pu blic Seria lizationDe serializat ion() | |
| 16 | { | |
| 17 | ||
| 18 | } | |
| 19 | ||
| 20 | /* * | |
| 21 | * @param or iginal | |
| 22 | * @return | |
| 23 | * / | |
| 24 | pu blic T ser ializeAndD eserialize (T origina l) | |
| 25 | { | |
| 26 | java .io.ByteAr rayOutputS tream out = new Debu ggingByteA rrayOutput Stream(409 6); | |
| 27 | XMLE ncoder enc oder = new XMLEncode r(out); | |
| 28 | enco der.writeO bject(orig inal); | |
| 29 | enco der.close( ); | |
| 30 | ||
| 31 | dump ByteArray( out.toByte Array()); | |
| 32 | ||
| 33 | java .io.ByteAr rayInputSt ream in = new java.i o.ByteArra yInputStre am(out.toB yteArray() ); | |
| 34 | XMLD ecoder dec oder = new XMLDecode r(in); | |
| 35 | T de serialized = (T)deco der.readOb ject(); | |
| 36 | deco der.close( ); | |
| 37 | ||
| 38 | retu rn deseria lized; | |
| 39 | } | |
| 40 | ||
| 41 | pr ivate void dumpByteA rray(byte[ ] byteArra y) | |
| 42 | { | |
| 43 | for( int index= 0; index<b yteArray.l ength; ++ index) | |
| 44 | { | |
| 45 | System .out.print (byteArray [index]); | |
| 46 | if((in dex % 80) == 0) | |
| 47 | System.o ut.print(" \n"); | |
| 48 | } | |
| 49 | } | |
| 50 | ||
| 51 | cl ass Debugg ingByteArr ayOutputSt ream | |
| 52 | ex tends java .io.ByteAr rayOutputS tream | |
| 53 | { | |
| 54 | publ ic Debuggi ngByteArra yOutputStr eam() | |
| 55 | { | |
| 56 | super( ); | |
| 57 | } | |
| 58 | ||
| 59 | publ ic Debuggi ngByteArra yOutputStr eam(int si ze) | |
| 60 | { | |
| 61 | super( size); | |
| 62 | } | |
| 63 | ||
| 64 | @Ove rride | |
| 65 | publ ic synchro nized void write(int b) | |
| 66 | { | |
| 67 | System .out.print (b); | |
| 68 | super. write(b); | |
| 69 | } | |
| 70 | } | |
| 71 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.