75. EPMO Open Source Coordination Office Redaction File Detail Report

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.

75.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\ImagingExchangeCache\main\src\java\gov\va\med\imaging\exchange\storage\cache\mock MockInstanceReadableByteChannel.java Thu Jun 29 17:23:06 2017 UTC
2 C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\ImagingExchangeCache\main\src\java\gov\va\med\imaging\exchange\storage\cache\mock MockInstanceReadableByteChannel.java Thu Jul 6 15:03:23 2017 UTC

75.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 246
Changed 2 4
Inserted 0 0
Removed 0 0

75.3 Comparison options

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

75.4 Active regular expressions

No regular expressions were active.

75.5 Comparison detail

  1   /**
  2    * Package : MAG - Vi stA Imagin g
  3    * WARNING : Per VHA  Directive  2004-038,  this routi ne should  not be mod ified.
  4    * Date Cr eated: Oct  14, 2008
  5    * Site Na me:  Washi ngton OI F ield Offic e, Silver  Spring, MD
  6    * @author         
BECKEC
  7    * @versio n 1.0
  8    *
  9    * ------- ---------- ---------- ---------- ---------- ---------- -------
  10    * Propert y of the U S Governme nt.
  11    * No perm ission to  copy or re distribute  this soft ware is gi ven.
  12    * Use of  unreleased  versions  of this so ftware req uires the  user
  13    * to exec ute a writ ten test a greement w ith the Vi stA Imagin g
  14    * Develop ment Offic e of the D epartment  of Veteran s Affairs,
  15    * telepho ne (301) 7 34-0100.
  16    * 
  17    * The Foo d and Drug  Administr ation clas sifies thi s software  as
  18    * a Class  II medica l device.   As such,  it may not  be change d
  19    * in any  way.  Modi fications  to this so ftware may  result in  an
  20    * adulter ated medic al device  under 21CF R820, the  use of whi ch
  21    * is cons idered to  be a viola tion of US  Federal S tatutes.
  22    * ------- ---------- ---------- ---------- ---------- ---------- -------
  23    */
  24   package go v.va.med.i maging.exc hange.stor age.cache. mock;
  25  
  26   import jav a.io.File;
  27   import jav a.io.IOExc eption;
  28   import jav a.nio.Byte Buffer;
  29   import jav a.util.zip .Checksum;
  30  
  31   import gov .va.med.im aging.stor age.cache. InstanceRe adableByte Channel;
  32  
  33   /**
  34    * @author         
BECKEC
  35    *
  36    */
  37   public cla ss MockIns tanceReada bleByteCha nnel 
  38   implements  InstanceR eadableByt eChannel
  39   {
  40           pr ivate bool ean open =  true;
  41           pr ivate Chec ksum check sum;
  42           pr ivate int  bytesRead  = 0;
  43           pr ivate fina l static i nt MAX_BYT ES_READ =  42;
  44           pr ivate Stac kTraceElem ent[] inst antiatingS tackTrace  = null;
  45           
  46           Mo ckInstance ReadableBy teChannel( )
  47       {
  48                super();
  49                    open  = true;
  50                    chec ksum = new  MockCheck sum();
  51                    
  52                    // t race the c hannel ins tantiation  so we can  tattle-ta le later i f its not  closed
  53                    inst antiatingS tackTrace  = Thread.c urrentThre ad().getSt ackTrace() ;
  54       }
  55  
  56           /* *
  57            *  @see gov. va.med.ima ging.stora ge.cache.I nstanceRea dableByteC hannel#err or()
  58            * /
  59           @O verride
  60           pu blic void  error() 
  61           th rows IOExc eption
  62           {
  63  
  64           }
  65  
  66           /* *
  67            *  @see gov. va.med.ima ging.stora ge.cache.I nstanceRea dableByteC hannel#get Checksum()
  68            * /
  69           @O verride
  70           pu blic Check sum getChe cksum()
  71           {
  72                    retu rn checksu m;
  73           }
  74  
  75           /* *
  76            *  @see java .nio.chann els.Readab leByteChan nel#read(j ava.nio.By teBuffer)
  77            * /
  78           @O verride
  79           pu blic int r ead(ByteBu ffer dst) 
  80           th rows IOExc eption
  81           {
  82                    if(!  isOpen())
  83                             throw  new java.i o.IOExcept ion("Attem pt to writ e to close d MockInst anceWritab leByteChan nel");
  84                    
  85                    int  initialByt esRead = 0 ;
  86                    for( ; bytesRea d < MAX_BY TES_READ;  ++bytesRea d)
  87                             dst.pu t((byte)0x 01);
  88                    retu rn bytesRe ad - initi alBytesRea d;
  89           }
  90  
  91           /* *
  92            *  @see java .nio.chann els.Channe l#close()
  93            * /
  94           @O verride
  95           pu blic void  close() th rows IOExc eption
  96           {
  97                    this .open = fa lse;
  98           }
  99  
  100           /* *
  101            *  @see java .nio.chann els.Channe l#isOpen()
  102            * /
  103           @O verride
  104           pu blic boole an isOpen( )
  105           {
  106                    retu rn open;
  107           }
  108  
  109           @O verride
  110           pu blic long  getLastAcc essedTime( )
  111           {
  112                    retu rn System. currentTim eMillis();
  113           }
  114  
  115           @O verride
  116           pu blic Stack TraceEleme nt[] getIn stantiatin gStackTrac e() 
  117           {
  118                    retu rn this.in stantiatin gStackTrac e;
  119           }
  120  
  121           pu blic File  getCacheFi le() {
  122                    retu rn null;
  123           }
  124  
  125   }