61. 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.

61.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\ImagingCommon\main\test\java\gov\va\med\imaging ByteChannelPumpTest.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 ByteChannelPumpTest.java Thu Jul 6 15:02:38 2017 UTC

61.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 1074
Changed 1 2
Inserted 0 0
Removed 0 0

61.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

61.4 Active regular expressions

No regular expressions were active.

61.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.i maging;
  5  
  6   import jav a.io.*;
  7   import jav a.nio.chan nels.Reada bleByteCha nnel;
  8   import jav a.nio.chan nels.Writa bleByteCha nnel;
  9   import jav a.util.con current.Ex ecutorServ ice;
  10   import jav a.util.con current.Ex ecutors;
  11   import jav a.util.con current.Ti meUnit;
  12  
  13   import gov .va.med.im aging.chan nels.ByteC hannelPump ;
  14   import jun it.framewo rk.TestCas e;
  15  
  16   /**
  17    * @author         
BECKEC
  18    *
  19    */
  20   public cla ss ByteCha nnelPumpTe st 
  21   extends Te stCase
  22   {
  23           /*  (non-Java doc)
  24            *  @see juni t.framewor k.TestCase #setUp()
  25            * /
  26           pr otected vo id setUp()  throws Ex ception
  27           {
  28                    supe r.setUp();
  29           }
  30  
  31           /*  (non-Java doc)
  32            *  @see juni t.framewor k.TestCase #tearDown( )
  33            * /
  34           pr otected vo id tearDow n() throws  Exception
  35           {
  36                    Syst em.out.pri ntln("Afte r - " + th is.getName ());
  37                    Syst em.out.pri ntln(ByteC hannelPump .getNameTo BufferSize MapString( ));
  38                    
  39                    supe r.tearDown ();
  40           }
  41  
  42           //  ========= ========== ========== ========== ========== ========== ========== ========== ========
  43           pu blic void  testFastRe adToValida tingWriteT ransfer() 
  44           th rows IOExc eption
  45           {
  46                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  47                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  true);
  48           }
  49           
  50           pu blic void  testMultip leFastRead ToValidati ngWriteTra nsfer() 
  51           th rows IOExc eption
  52           {
  53                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  54                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  55                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  56                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  57                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  58                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  59                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  60                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  61                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  62                    fast ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  63           }
  64           
  65  
  66           pu blic void  testMultit hreadFastR eadToValid atingWrite Transfer()  
  67           th rows Inter ruptedExce ption, IOE xception
  68           {
  69                    // u se an exec utor that  will not q ueue tasks
  70                    Exec utorServic e executor  = Executo rs.newCach edThreadPo ol();
  71                    
  72                    for( int taskIn dex=0; tas kIndex < 1 0; ++taskI ndex)
  73                    {
  74                             execut or.submit( new Runnab le()
  75                             {
  76                                      public v oid run()
  77                                      {
  78                                               try
  79                                               {
  80                                                       fa stReadToVa lidatingWr iteTransfe r(8 * 1024 , false);
  81                                              
  82                                               catch (IOE xception x )
  83                                               {
  84                                                       x. printStack Trace();
  85                                                       fa il(x.getMe ssage());
  86                                               }
  87                                      }
  88                             }
  89                             );
  90                    }
  91                    
  92                    exec utor.shutd own();
  93                    exec utor.await Terminatio n(60L, Tim eUnit.SECO NDS);
  94           }
  95  
  96           //  ========= ========== ========== ========== ========== ========== ========== ========== ========
  97           pu blic void  testSlowRe adToValida tingWriteT ransfer() 
  98           th rows IOExc eption
  99           {
  100                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  101                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  true);
  102           }
  103           
  104           pu blic void  testMultip leSlowRead ToValidati ngWriteTra nsfer() 
  105           th rows IOExc eption
  106           {
  107                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  108                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  109                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  110                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  111                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  112                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  113                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  114                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  115                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  116                    slow ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  117           }
  118           
  119  
  120           pu blic void  testMultit hreadSlowR eadToValid atingWrite Transfer()  
  121           th rows Inter ruptedExce ption, IOE xception
  122           {
  123                    // u se an exec utor that  will not q ueue tasks
  124                    Exec utorServic e executor  = Executo rs.newCach edThreadPo ol();
  125                    
  126                    for( int taskIn dex=0; tas kIndex < 1 0; ++taskI ndex)
  127                    {
  128                             execut or.submit( new Runnab le()
  129                             {
  130                                      public v oid run()
  131                                      {
  132                                               try
  133                                               {
  134                                                       sl owReadToVa lidatingWr iteTransfe r(8 * 1024 , false);
  135                                              
  136                                               catch (IOE xception x )
  137                                               {
  138                                                       x. printStack Trace();
  139                                                       fa il(x.getMe ssage());
  140                                               }
  141                                      }
  142                             }
  143                             );
  144                    }
  145                    
  146                    exec utor.shutd own();
  147                    exec utor.await Terminatio n(60L, Tim eUnit.SECO NDS);
  148           }
  149           
  150           //  ========= ========== ========== ========== ========== ========== ========== ========== ========
  151           pu blic void  testFastRe adToFileWr iteTransfe r() 
  152           th rows IOExc eption
  153           {
  154                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  155                    fast ReadToFile WriteTrans fer(8 * 10 24, true);
  156           }
  157           
  158           pu blic void  testMultip leFastRead ToFileWrit eTransfer(
  159           th rows IOExc eption
  160           {
  161                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  162                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  163                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  164                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  165                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  166                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  167                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  168                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  169                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  170                    fast ReadToFile WriteTrans fer(8 * 10 24, false) ;
  171           }
  172           
  173  
  174           pu blic void  testMultit hreadFastR eadToFileW riteTransf er() 
  175           th rows Inter ruptedExce ption, IOE xception
  176           {
  177                    // u se an exec utor that  will not q ueue tasks
  178                    Exec utorServic e executor  = Executo rs.newCach edThreadPo ol();
  179                    
  180                    for( int taskIn dex=0; tas kIndex < 1 0; ++taskI ndex)
  181                    {
  182                             execut or.submit( new Runnab le()
  183                             {
  184                                      public v oid run()
  185                                      {
  186                                               try
  187                                               {
  188                                                       fa stReadToFi leWriteTra nsfer(8 *  1024, fals e);
  189                                              
  190                                               catch (IOE xception x )
  191                                               {
  192                                                       x. printStack Trace();
  193                                                       fa il(x.getMe ssage());
  194                                               }
  195                                      }
  196                             }
  197                             );
  198                    }
  199                    
  200                    exec utor.shutd own();
  201                    exec utor.await Terminatio n(60L, Tim eUnit.SECO NDS);
  202           }
  203  
  204           //  ========= ========== ========== ========== ========== ========== ========== ========== ========
  205           pu blic void  testSlowRe adToFileWr iteTransfe r() 
  206           th rows IOExc eption
  207           {
  208                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  209                    slow ReadToFile WriteTrans fer(8 * 10 24, true);
  210           }
  211           
  212           pu blic void  testMultip leSlowRead ToFileWrit eTransfer(
  213           th rows IOExc eption
  214           {
  215                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  216                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  217                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  218                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  219                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  220                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  221                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  222                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  223                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  224                    slow ReadToFile WriteTrans fer(8 * 10 24, false) ;
  225           }
  226           
  227  
  228           pu blic void  testMultit hreadSlowR eadToFileW riteTransf er() 
  229           th rows Inter ruptedExce ption, IOE xception
  230           {
  231                    // u se an exec utor that  will not q ueue tasks
  232                    Exec utorServic e executor  = Executo rs.newCach edThreadPo ol();
  233                    
  234                    for( int taskIn dex=0; tas kIndex < 1 0; ++taskI ndex)
  235                    {
  236                             execut or.submit( new Runnab le()
  237                             {
  238                                      public v oid run()
  239                                      {
  240                                               try
  241                                               {
  242                                                       sl owReadToFi leWriteTra nsfer(8 *  1024, fals e);
  243                                              
  244                                               catch (IOE xception x )
  245                                               {
  246                                                       x. printStack Trace();
  247                                                       fa il(x.getMe ssage());
  248                                               }
  249                                      }
  250                             }
  251                             );
  252                    }
  253                    
  254                    exec utor.shutd own();
  255                    exec utor.await Terminatio n(60L, Tim eUnit.SECO NDS);
  256           }
  257  
  258           //  ========= ========== ========== ========== ========== ========== ========== ========== ========
  259           pu blic void  testFastRe adToSlowVa lidatingWr iteTransfe r() 
  260           th rows IOExc eption
  261           {
  262                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  263                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, true);
  264           }
  265           
  266           pu blic void  testMultip leFastRead ToSlowVali datingWrit eTransfer(
  267           th rows IOExc eption
  268           {
  269                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  270                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  271                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  272                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  273                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  274                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  275                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  276                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  277                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  278                    fast ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  279           }
  280           
  281  
  282           pu blic void  testMultit hreadFastR eadToSlowV alidatingW riteTransf er() 
  283           th rows Inter ruptedExce ption, IOE xception
  284           {
  285                    // u se an exec utor that  will not q ueue tasks
  286                    Exec utorServic e executor  = Executo rs.newCach edThreadPo ol();
  287                    
  288                    for( int taskIn dex=0; tas kIndex < 1 0; ++taskI ndex)
  289                    {
  290                             execut or.submit( new Runnab le()
  291                             {
  292                                      public v oid run()
  293                                      {
  294                                               try
  295                                               {
  296                                                       fi leReadToVa lidatingWr iteTransfe r(8 * 1024 , false);
  297                                              
  298                                               catch (IOE xception x )
  299                                               {
  300                                                       x. printStack Trace();
  301                                                       fa il(x.getMe ssage());
  302                                               }
  303                                      }
  304                             }
  305                             );
  306                    }
  307                    
  308                    exec utor.shutd own();
  309                    exec utor.await Terminatio n(60L, Tim eUnit.SECO NDS);
  310           }
  311           
  312           //  ========= ========== ========== ========== ========== ========== ========== ========== ========
  313           pu blic void  testFileRe adToValida tingWriteT ransfer() 
  314           th rows IOExc eption
  315           {
  316                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  317                    file ReadToVali datingWrit eTransfer( 8 * 1024,  true);
  318           }
  319           
  320           pu blic void  testMultip leFileRead ToValidati ngWriteTra nsfer() 
  321           th rows IOExc eption
  322           {
  323                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  324                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  325                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  326                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  327                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  328                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  329                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  330                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  331                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  332                    file ReadToVali datingWrit eTransfer( 8 * 1024,  false);
  333           }
  334           
  335  
  336           pu blic void  testMultit hreadFileR eadToValid atingWrite Transfer()  
  337           th rows Inter ruptedExce ption, IOE xception
  338           {
  339                    // u se an exec utor that  will not q ueue tasks
  340                    Exec utorServic e executor  = Executo rs.newCach edThreadPo ol();
  341                    
  342                    for( int taskIn dex=0; tas kIndex < 1 0; ++taskI ndex)
  343                    {
  344                             execut or.submit( new Runnab le()
  345                             {
  346                                      public v oid run()
  347                                      {
  348                                               try
  349                                               {
  350                                                       fi leReadToVa lidatingWr iteTransfe r(8 * 1024 , false);
  351                                              
  352                                               catch (IOE xception x )
  353                                               {
  354                                                       x. printStack Trace();
  355                                                       fa il(x.getMe ssage());
  356                                               }
  357                                      }
  358                             }
  359                             );
  360                    }
  361                    
  362                    exec utor.shutd own();
  363                    exec utor.await Terminatio n(60L, Tim eUnit.SECO NDS);
  364           }
  365  
  366           //  ========= ========== ========== ========== ========== ========== ========== ========== ========
  367           pu blic void  testFileRe adToSlowVa lidatingWr iteTransfe r() 
  368           th rows IOExc eption
  369           {
  370                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  371                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, true);
  372           }
  373           
  374           pu blic void  testMultip leFileRead ToSlowVali datingWrit eTransfer(
  375           th rows IOExc eption
  376           {
  377                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  378                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  379                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  380                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  381                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  382                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  383                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  384                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  385                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  386                    file ReadToSlow Validating WriteTrans fer(8 * 10 24, false) ;
  387           }
  388           
  389  
  390           pu blic void  testMultit hreadFileR eadToSlowV alidatingW riteTransf er() 
  391           th rows Inter ruptedExce ption, IOE xception
  392           {
  393                    // u se an exec utor that  will not q ueue tasks
  394                    Exec utorServic e executor  = Executo rs.newCach edThreadPo ol();
  395                    
  396                    for( int taskIn dex=0; tas kIndex < 1 0; ++taskI ndex)
  397                    {
  398                             execut or.submit( new Runnab le()
  399                             {
  400                                      public v oid run()
  401                                      {
  402                                               try
  403                                               {
  404                                                       fi leReadToSl owValidati ngWriteTra nsfer(8 *  1024, fals e);
  405                                              
  406                                               catch (IOE xception x )
  407                                               {
  408                                                       x. printStack Trace();
  409                                                       fa il(x.getMe ssage());
  410                                               }
  411                                      }
  412                             }
  413                             );
  414                    }
  415                    
  416                    exec utor.shutd own();
  417                    exec utor.await Terminatio n(60L, Tim eUnit.SECO NDS);
  418           }
  419           
  420           //  ========= ========== ========== ========== ========== ========== ========== ========== ========== ========== ====
  421           //  Helper me thods so r unning mul tiple tran sfers is e asier.
  422           //  These mus t all take  one integ er arg.
  423           //  
  424           //  ========= ========== ========== ========== ========== ========== ========== ========== ========== ========== ====
  425           /* *
  426            *  @param te stDataLeng th
  427            *  @throws I OException
  428            * /
  429           pr ivate void  fastReadT oValidatin gWriteTran sfer(int t estDataLen gth, boole an detectZ eroBytes) 
  430           th rows IOExc eption
  431           {
  432                    Read ableByteCh annel read Channel =  TestDataGe nerator.cr eateFastRe adableByte Channel(te stDataLeng th);
  433                    Writ ableByteCh annel writ eChannel =  TestDataG enerator.c reateTestD ataValidat ingWritabl eByteChann el();
  434                    
  435                    Byte ChannelPum p bytePump  = ByteCha nnelPump.g etByteChan nelPump(By teChannelP ump.TRANSF ER_TYPE.By teArrayToB yteArray);
  436                    byte Pump.setDe tectZeroBy tesInBlock ingMode(de tectZeroBy tes);
  437                    byte Pump.xfer( readChanne l, writeCh annel);
  438                    
  439                    read Channel.cl ose();
  440                    writ eChannel.c lose();
  441           }
  442  
  443           pr ivate void  fastReadT oSlowValid atingWrite Transfer(i nt testDat aLength, b oolean det ectZeroByt es) 
  444           th rows IOExc eption
  445           {
  446                    Read ableByteCh annel read Channel =  TestDataGe nerator.cr eateFastRe adableByte Channel(te stDataLeng th);
  447                    Writ ableByteCh annel writ eChannel =  TestDataG enerator.c reateTestD ataValidat ingSlowWri tableByteC hannel();
  448                    
  449                    Byte ChannelPum p bytePump  = ByteCha nnelPump.g etByteChan nelPump(By teChannelP ump.TRANSF ER_TYPE.By teArrayToB yteArray);
  450                    byte Pump.setDe tectZeroBy tesInBlock ingMode(de tectZeroBy tes);
  451                    byte Pump.xfer( readChanne l, writeCh annel);
  452                    
  453                    read Channel.cl ose();
  454                    writ eChannel.c lose();
  455           }
  456  
  457           pr ivate void  slowReadT oValidatin gWriteTran sfer(int t estDataLen gth, boole an detectZ eroBytes) 
  458           th rows IOExc eption
  459           {
  460                    Read ableByteCh annel read Channel =  TestDataGe nerator.cr eateSlowRe adableByte Channel(te stDataLeng th);
  461                    Writ ableByteCh annel writ eChannel =  TestDataG enerator.c reateTestD ataValidat ingWritabl eByteChann el();
  462                    
  463                    Byte ChannelPum p bytePump  = ByteCha nnelPump.g etByteChan nelPump(By teChannelP ump.TRANSF ER_TYPE.Ne tworkToByt eArray);
  464                    byte Pump.setDe tectZeroBy tesInBlock ingMode(de tectZeroBy tes);
  465                    byte Pump.xfer( readChanne l, writeCh annel);
  466                    
  467                    read Channel.cl ose();
  468                    writ eChannel.c lose();
  469           }
  470           
  471           pr ivate void  fastReadT oFileWrite Transfer(i nt testDat aLength, b oolean det ectZeroByt es) 
  472           th rows IOExc eption
  473           {
  474                    Read ableByteCh annel read Channel =  TestDataGe nerator.cr eateFastRe adableByte Channel(te stDataLeng th);
  475                    File  tempFile  = TestData Generator. createBlan kDestinati onFile();
  476                    Writ ableByteCh annel writ eChannel =  
  477                             new Fi leOutputSt ream(tempF ile).getCh annel();
  478                    
  479                    Byte ChannelPum p bytePump  = ByteCha nnelPump.g etByteChan nelPump(By teChannelP ump.TRANSF ER_TYPE.By teArrayToB yteArray);
  480                    byte Pump.setDe tectZeroBy tesInBlock ingMode(de tectZeroBy tes);
  481                    byte Pump.xfer( readChanne l, writeCh annel);
  482                    
  483                    read Channel.cl ose();
  484                    writ eChannel.c lose();
  485                    
  486                    Test DataGenera tor.assert ValidTestD ata(tempFi le);
  487                    temp File.delet e();
  488           }
  489  
  490           pr ivate void  slowReadT oFileWrite Transfer(i nt testDat aLength, b oolean det ectZeroByt es) 
  491           th rows IOExc eption
  492           {
  493                    Read ableByteCh annel read Channel =  TestDataGe nerator.cr eateSlowRe adableByte Channel(te stDataLeng th);
  494                    File  tempFile  = TestData Generator. createBlan kDestinati onFile();
  495                    Writ ableByteCh annel writ eChannel =  
  496                             new Fi leOutputSt ream(tempF ile).getCh annel();
  497                    
  498                    Byte ChannelPum p bytePump  = ByteCha nnelPump.g etByteChan nelPump(By teChannelP ump.TRANSF ER_TYPE.By teArrayToB yteArray);
  499                    byte Pump.setDe tectZeroBy tesInBlock ingMode(de tectZeroBy tes);
  500                    byte Pump.xfer( readChanne l, writeCh annel);
  501                    
  502                    read Channel.cl ose();
  503                    writ eChannel.c lose();
  504                    
  505                    Test DataGenera tor.assert ValidTestD ata(tempFi le);
  506                    temp File.delet e();
  507           }
  508           
  509           pr ivate void  fileReadT oValidatin gWriteTran sfer(int t estDataLen gth, boole an detectZ eroBytes) 
  510           th rows IOExc eption
  511           {
  512                    File  tempFile  = TestData Generator. createFile (testDataL ength);
  513                    Read ableByteCh annel read Channel =  new FileIn putStream( tempFile). getChannel ();
  514                    Writ ableByteCh annel writ eChannel =  TestDataG enerator.c reateTestD ataValidat ingWritabl eByteChann el();
  515                    
  516                    Byte ChannelPum p bytePump  = ByteCha nnelPump.g etByteChan nelPump(By teChannelP ump.TRANSF ER_TYPE.Ne tworkToByt eArray);
  517                    byte Pump.setDe tectZeroBy tesInBlock ingMode(de tectZeroBy tes);
  518                    byte Pump.xfer( readChanne l, writeCh annel);
  519                    
  520                    read Channel.cl ose();
  521                    writ eChannel.c lose();
  522           }
  523           
  524           pr ivate void  fileReadT oSlowValid atingWrite Transfer(i nt testDat aLength, b oolean det ectZeroByt es) 
  525           th rows IOExc eption
  526           {
  527                    File  tempFile  = TestData Generator. createFile (testDataL ength);
  528                    Read ableByteCh annel read Channel =  new FileIn putStream( tempFile). getChannel ();
  529                    Writ ableByteCh annel writ eChannel =  TestDataG enerator.c reateTestD ataValidat ingSlowWri tableByteC hannel();
  530                    
  531                    Byte ChannelPum p bytePump  = ByteCha nnelPump.g etByteChan nelPump(By teChannelP ump.TRANSF ER_TYPE.Ne tworkToByt eArray);
  532                    byte Pump.setDe tectZeroBy tesInBlock ingMode(de tectZeroBy tes);
  533                    byte Pump.xfer( readChanne l, writeCh annel);
  534                    
  535                    read Channel.cl ose();
  536                    writ eChannel.c lose();
  537           }
  538   }