Browse Source

Subo los archivos actualizados, que se me habia olviidado subir.

readme.md tambien
master
vigliom 2 years ago
parent
commit
5203748a53
11 changed files with 495 additions and 0 deletions
  1. +10
    -0
      .classpath
  2. +17
    -0
      .project
  3. +2
    -0
      .settings/org.eclipse.core.resources.prefs
  4. +14
    -0
      .settings/org.eclipse.jdt.core.prefs
  5. +359
    -0
      README.md
  6. +5
    -0
      Salida.dat
  7. BIN
      bin/jorpelu/com/MyCopy.class
  8. BIN
      bin/module-info.class
  9. +74
    -0
      src/jorpelu/com/MyCopy.java
  10. +9
    -0
      src/module-info.java
  11. +5
    -0
      textp.dat

+ 10
- 0
.classpath View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>

+ 17
- 0
.project View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MiCopy</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

+ 2
- 0
.settings/org.eclipse.core.resources.prefs View File

@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8

+ 14
- 0
.settings/org.eclipse.jdt.core.prefs View File

@ -0,0 +1,14 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=17
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=17

+ 359
- 0
README.md View File

@ -1,2 +1,361 @@
# MyCopy # MyCopy
Subo My copy que se me habia olvidado subirlo
salida por consola:
~~~
textp.dat
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
1%
@@___________________________________________________________________________________________________
1%
@@___________________________________________________________________________________________________
2%
@@@__________________________________________________________________________________________________
3%
@@@@_________________________________________________________________________________________________
4%
@@@@@________________________________________________________________________________________________
5%
@@@@@@_______________________________________________________________________________________________
6%
@@@@@@@______________________________________________________________________________________________
6%
@@@@@@@______________________________________________________________________________________________
7%
@@@@@@@@_____________________________________________________________________________________________
8%
@@@@@@@@@____________________________________________________________________________________________
9%
@@@@@@@@@@___________________________________________________________________________________________
10%
@@@@@@@@@@@__________________________________________________________________________________________
11%
@@@@@@@@@@@@_________________________________________________________________________________________
12%
@@@@@@@@@@@@@________________________________________________________________________________________
12%
@@@@@@@@@@@@@________________________________________________________________________________________
13%
@@@@@@@@@@@@@@_______________________________________________________________________________________
14%
@@@@@@@@@@@@@@@______________________________________________________________________________________
15%
@@@@@@@@@@@@@@@@_____________________________________________________________________________________
16%
@@@@@@@@@@@@@@@@@____________________________________________________________________________________
17%
@@@@@@@@@@@@@@@@@@___________________________________________________________________________________
18%
@@@@@@@@@@@@@@@@@@@__________________________________________________________________________________
18%
@@@@@@@@@@@@@@@@@@@__________________________________________________________________________________
19%
@@@@@@@@@@@@@@@@@@@@_________________________________________________________________________________
20%
@@@@@@@@@@@@@@@@@@@@@________________________________________________________________________________
21%
@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________________________________
22%
@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________________________
23%
@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________________________________
24%
@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________________________
24%
@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________________________
25%
@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________________________________
26%
@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________________________
27%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________________________________
28%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________________________
29%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________________________
30%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________________
30%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________________
31%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________________________
32%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________________
33%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________________________
34%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________________
35%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________________________
36%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________________
36%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________________
37%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________________
38%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________
39%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________________
40%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________
41%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________________
42%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________
42%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________
43%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________________
44%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________
45%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________
46%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________
47%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________
48%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________
48%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________
49%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________
50%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________
51%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________
52%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________
53%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________
53%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________
54%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________
55%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________
56%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________
57%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________
58%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________
59%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________
59%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________
60%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________
61%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________
62%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________
63%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________
64%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________
65%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________
65%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________
66%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________
67%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________
68%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________
69%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________
70%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________
71%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________
71%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________
72%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________
73%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________
74%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________
75%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________
76%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________
77%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________
77%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________
78%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________
79%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________
80%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________
81%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________
82%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________
83%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________
83%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________
84%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________
85%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________
86%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@_____
95%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____
96%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____
97%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___
98%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__
99%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_
100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
~~~

+ 5
- 0
Salida.dat View File

@ -0,0 +1,5 @@
Archivo a copiar (salto de linea)
A ver que copia y que no
asdakjdawd
ajdbawdj awldka wdwakn dw
a wd´naw daw d

BIN
bin/jorpelu/com/MyCopy.class View File


BIN
bin/module-info.class View File


+ 74
- 0
src/jorpelu/com/MyCopy.java View File

@ -0,0 +1,74 @@
package jorpelu.com;
import java.io.*;
import java.io.File;
import java.util.ArrayList;
import java.util.Scanner;
public class MyCopy {
public static final String esc = "\u001b[";
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws FileNotFoundException, IOException {
String ficheroString = sc.next();
File fich = new File(".\\Salida.dat");
File fich_a_copiar = new File(ficheroString);
if(fich_a_copiar.exists() == false) {
fich_a_copiar.createNewFile();
}
String[] calculando = {"-", "\\", "|", "/"};
FileInputStream in = new FileInputStream(fich_a_copiar);
DataInputStream din = new DataInputStream(in);
FileOutputStream out = new FileOutputStream(fich);
DataOutputStream dout = new DataOutputStream(out);
int cal=0;
int i=0;
int c;
ArrayList bufferin = new ArrayList();
while((c = din.read() ) != -1 && bufferin.add(c)) {
System.out.println(calculando[cal]);
clearScreen();
cal++;
if (cal >= 4)
cal = 0;
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
for(int j = 0; j<bufferin.size(); j++) {
int porcentaje = (j*100)/bufferin.size();
System.out.println(porcentaje+1 + "%");
for(int q = 0; q<=porcentaje+1; q++) {
System.out.print("@");
}
for(int q = porcentaje+1; q<100; q++) {
System.out.print("_");
}
clearScreen();
System.out.println("");
dout.write((int)bufferin.get(j));
try {
Thread.sleep(40);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
public static void clearScreen(){
System.out.print(esc + "H");
System.out.print(esc + "2J");
System.out.flush();
}
}

+ 9
- 0
src/module-info.java View File

@ -0,0 +1,9 @@
/**
*
*/
/**
* @author jorge
*
*/
module MiCopy {
}

+ 5
- 0
textp.dat View File

@ -0,0 +1,5 @@
Archivo a copiar (salto de linea)
A ver que copia y que no
asdakjdawd
ajdbawdj awldka wdwakn dw
a wd´naw daw d

Loading…
Cancel
Save