From cdef29f7d64fca0570519006380190006484bb56 Mon Sep 17 00:00:00 2001 From: jandroalbus Date: Fri, 7 Oct 2022 19:18:52 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20codigo=20copia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bin/MiCopyFicheros/MiCopyFicheros.class | Bin 2822 -> 3011 bytes .../src/MiCopyFicheros/MiCopyFicheros.java | 11 +++++++++++ 2 files changed, 11 insertions(+) diff --git a/MiCopyFicheros/bin/MiCopyFicheros/MiCopyFicheros.class b/MiCopyFicheros/bin/MiCopyFicheros/MiCopyFicheros.class index efb0bdfdbf1f9e9632764e8b7c1217dc9a69827d..2fde6f2082b793c6f117e8680d8b644278cf14c2 100644 GIT binary patch delta 1349 zcmZWp-%lJ>7(K)6%$*sA6gDid3j|79yBJ$+DqFh<)zTKW_Lo4>l~%j5%d&J~+hw6v z#np!5`O++!2h#Y8p{iz`rr ztr3m29O_RNc44v^?3Q_d7FcqjJExqHe7@WaBV&atx<4lL;yEkU+n4L;b=WR-i;UQ_fY- zj=&KCD*l&*{#-USkrYTezj`($M_^h|FlOTf(hBV1SbF$yHj~UICMOl>!AK<18Zj`z z#of3xFF?7qw?wXS?V3uZbF3$@@-x7?yQrff{(v@@e^G~zg8;|Vo8XunGeXAI*~PO-XmjS=HB9yv5u`3vGDE#ueum{SWg8s4!^JIp=4wAwTpv zZu8zz#1=KA7tra`tMJ`2wiRIcJwC07?VF3}h=#PX`O^~3#D%)-+uD3?x5dO!~=^cLkHdJM-`4>2#=tT3M?wX^;<>Qy zJr@>!z0t21@j?+7!iE|$3uus~{=8U2`)Rj}7PF?}GaIj!ex#Wa;=M>Rzu;@X!JGGW z-Wn^d(IVdPUS2CI;_XG(0;zb5YtByUzn4~YqZYeq@E-JFFRkjOArYM9^9&8Rj{HFv zKC-r0T%`$e6!0!1e!IAg_ZXFt<|5u_q>}6c=5dW)HsL%zpywLf#PJ~`oo$X|fstUd zetg8p;B0a2HC delta 1114 zcmY+DPfQ$T7{-6Y?EKkbNa+S>XW50)Qdw$SBv_Qif|Lqfw2Fe%?TWI(vVdDaz-n6+ zt%%jOTK#JMuWe%7lZkj(h^ReyF?#W6Vq%Q(;Ki#458^vZW8#;|eDBQrJn#F=^UeG1 zw&g14`+vUt1~|yI6=$p7Zb&Rk|HC299Tx2x84zII@>fjF_%e?xq|M{Fy?ca z%&bNr*4H>>ai?0=Ywb=Bxfpb-&-AEvm-<0(_Ih28UAG0elZSI zj1#tbQuGWvjPsPs)0|QbX1hJk8JA~xR!y1pu|)x-{4y`NoaIGnoy$yT7bc`{tTEvy zUUFIHW%aq)Q1yy{%WTfew!<%a(J%U%`qQi{yCm;+J2dg8i&E9rU%^gvEIEJ^Ds0ye zcYVQ4p}ht6>#atfU6saGzFVWEg4@<;%d;hJuG5+H%vHLsFBuiZ{3jbf`>eyl+E<{* z3lvDKh-vL~ahN`-?@0Yal&i1p>cuKr@FW+NYz;ls(odD>uV<7-vg{$pUP^^=WK$RS za8#ajrnr~;q;44_!nvOk;T_`v1|(M}s67l4;1+J?L59Ts9_f3GhcHPBe<#L%sh+h7_KX`~YbmHz z2BX(Dei!$AMChE<@)j-0d$!y{ugWc2?o1T85PE%+Rp5=4q8YxW`-?W+DxZ2lOu3zH zv{5Zn)GPK5%E%n2gIU>6iPfLdT||!;4^odLBhD+mMrSG=CLc7vud) wT;DEAWT>RK|NHgIaq6-M)#=jh&55Gc9h-0d(;B>?RZx87YZdOt!YSeEzcR+uoB#j- diff --git a/MiCopyFicheros/src/MiCopyFicheros/MiCopyFicheros.java b/MiCopyFicheros/src/MiCopyFicheros/MiCopyFicheros.java index c6681a5..234f9e9 100644 --- a/MiCopyFicheros/src/MiCopyFicheros/MiCopyFicheros.java +++ b/MiCopyFicheros/src/MiCopyFicheros/MiCopyFicheros.java @@ -19,11 +19,22 @@ public class MiCopyFicheros { System.out.println("\n> Empezando copia ..."); + int c; + for (int i = 0; i <= 200; i = i + 20) { //Invocamos al metodo progressPercentage(i, 200); + //Copiamos + try { + while ((c = in.read()) != -1) { + out.write(c); + } + } catch (IOException e1) { + //Ignora + } + //Ralentizamos el output try { Thread.sleep(1000);