From df6d56c46ca6e11ef8bc11744f2bd228f15d1f19 Mon Sep 17 00:00:00 2001 From: AntonioFrische Date: Fri, 7 Oct 2022 17:28:37 +0200 Subject: [PATCH] finish --- .classpath | 10 ++++++ .project | 17 ++++++++++ .settings/org.eclipse.core.resources.prefs | 2 ++ .settings/org.eclipse.jdt.core.prefs | 14 ++++++++ bin/com/antoniofrische/MyCopy.class | Bin 0 -> 2084 bytes bin/module-info.class | Bin 0 -> 145 bytes src/com/antoniofrische/MyCopy.java | 36 +++++++++++++++++++++ src/module-info.java | 2 ++ 8 files changed, 81 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 bin/com/antoniofrische/MyCopy.class create mode 100644 bin/module-info.class create mode 100644 src/com/antoniofrische/MyCopy.java create mode 100644 src/module-info.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..b078173 --- /dev/null +++ b/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..c7a09a0 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + MyCopy + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..b635231 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=18 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=18 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=18 diff --git a/bin/com/antoniofrische/MyCopy.class b/bin/com/antoniofrische/MyCopy.class new file mode 100644 index 0000000000000000000000000000000000000000..a9891a0b23c8dfa5a9ef1083a6944905e3998082 GIT binary patch literal 2084 zcmd5+-BTM?6#re4uwk<;G?4O9prKKkv`tbzL|bZW2vF$&X&Z`CLSfn5lBJv7b$8P? z_Q@G%eDTFmr;ek}_|#YRAt=oB)fxW*U;PVw^4WTB0&SSK@9x9hd+#~tchC8qk3at1 zeG1?*9!Y3n=+&%pS~We()UCUY?rJ5TUZ`d*yDGuY(6O!FSJQ@SZl!aZ+g$S)S}*CQ z?pG z`PVuyN#JEwHyMt{SLa_ilJ^|l+?o`R%QFu(ZhN|Ax)Q<+19dIkO3&&BU$negt6~

qzKg=sZxF%QXp(GYr0XVb1ip<5X;qHyigbCdIl`=Oyw~*IL6@#yjj;@c6t!HPi<_j53}tw;=*j3tzsSY_ zLnQtx<|LeC=xz>X&a^8YG0WAmj6nRat0n^l<01!=$f9SMK};~PRblgvf(t?vsEY*SlL{{3U4o|+6f=e~ zRrNUahd-WJoeEIH(#QUhkwI3%)FJnmO2S0JG-e3UH8{70-L=HBj2Nyecpq~lc;M(B zHKRX1msoDS@>d-ZK`f9<$sls{TN8fVP;gVUaX>RHml`{U8xn3ER7-slG#YTKq8ml- z1n~j&e4a;3su`sU)Ky|e#uEC)a$CVF3N$oS+vaAGp`V_AsUr8Gh~GOzKvYv5Rih5% zt}HM%1cu6xd{rsG7E4%a3W}hZgPzs!nV~EG^7CTQsLmF#-T8_+LsY1uvlxy(FACBA zWYr>uQ}3bMramHtzC*I+Mj;_1V@8=_nkW(OXw=+vnifg)xJ~XzG#hP$({0Nt<(%mZ zNAjMk-CI!Y`WTh4C4t0p-l~wjaEl?-nBOVUqZk5}bUoKCw4(t{t3>BC{TclOXLb<$ znKmtuX%%9+M2J>pf3M&Oo!W2|?WEN~`yfFcLnk5viv12h=>ofZ=w1o;?$Au%!{Ex< z9Yh!Q5L*eqxr5V-z6rl?B5?FVYx{-ZFNlXzHJlg!w`zF%Tn!g5%D#!v6LduUy>cWp zwlU%VG{hpIUis;d&;G89PIuw*uXrz6m)9^G34PXuYma|GNZ`y9&I^k_#nmD`LD1Ke zHRS2MhozP9@(w;E%o;CnBq=Q%p(X> z<96Z-x-diW=jeYMJ=j1m?xGJCPN0f@d_s4h<0QU96yH!1zQZZ}Mo5BJyT0y{{uZ5N z{Dcy8;<^)0u#J1f@c_Q3VPud`QGAOsOky~O$AoTDZiWff#z&N^1ipYnyCC`V2rfKA yo1&L1q!+>(CAqP?PwxyN@QhrRB|MPOEn!eXj4_{2!b3{AawID1qe_Y``1n6Wm;bZ? literal 0 HcmV?d00001 diff --git a/bin/module-info.class b/bin/module-info.class new file mode 100644 index 0000000000000000000000000000000000000000..7c0ba8c23f63c3124c923fc22b31e7025279125e GIT binary patch literal 145 zcmX^0Z`VEs1_nC@E_MbcMh5QO{FKt1RNc(Hw0uSeuHgLAqU2P!%$!t41_2}~y{yEt zL`DWSU$AOn26hm;(mB7NQka30k%1E=t(TNooZ7&^zz8%R0+<+>fea=F76w)zEylnG N7G`ANXaF-H1OSB?8}9%B literal 0 HcmV?d00001 diff --git a/src/com/antoniofrische/MyCopy.java b/src/com/antoniofrische/MyCopy.java new file mode 100644 index 0000000..0df4380 --- /dev/null +++ b/src/com/antoniofrische/MyCopy.java @@ -0,0 +1,36 @@ +package com.antoniofrische; + +import java.io.*; + +public class MyCopy { + public static void main(String [] args) + throws FileNotFoundException, IOException, InterruptedException{ + + File acopy = new File("C:\\Users\\AntonioFrische\\OneDrive - ABACCO Solutions\\Documents\\Schule_22_23_CFGS\\Acceso_Datos\\SpringTool_4\\contents\\sts-4.16.0.RELEASE\\Arch\\copy.txt"); + + FileInputStream in = new FileInputStream(acopy); + FileOutputStream out = new FileOutputStream("C:\\Users\\AntonioFrische\\OneDrive - ABACCO Solutions\\Documents\\Schule_22_23_CFGS\\Acceso_Datos\\SpringTool_4\\contents\\sts-4.16.0.RELEASE\\Arch\\salida.txt"); + + int n=0,c = 0; + double percent = 0; + double steps = 1.0; + System.out.println ("Copiando ..."); + System.out.print("["); + byte[] complet = in.readAllBytes(); + for(int i = 0; i < complet.length; i++) { + n = n+complet[i]; + } + + for(int i = 0; i < complet.length; i++) { + Thread.sleep(500); + out.write(complet[i]); + if(i > 0.5) { + System.out.print("-"); + } + } + System.out.println("]"); + in.close(); + out.close(); + System.out.println ("Se han copiado "+complet.length+" caracteres\n"); + } +} diff --git a/src/module-info.java b/src/module-info.java new file mode 100644 index 0000000..fdd6196 --- /dev/null +++ b/src/module-info.java @@ -0,0 +1,2 @@ +module MyCopy { +} \ No newline at end of file