daily_automated

This commit is contained in:
paolo.iocco
2023-03-13 08:36:51 +00:00
parent 5347889cd2
commit f29dcc4188
5439 changed files with 1065799 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="src/comm.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>java - ParralelPrint</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>

Binary file not shown.

View File

@@ -0,0 +1,46 @@
import java.awt.*;
import java.io.*;
import javax.comm.*;
/**
* Print to a serial port using Java Communications.
*
*/
public class ParallelPrint extends CommPortOpen {
protected static String inputFileName;
public static void main(String[] argv)
throws IOException, NoSuchPortException, PortInUseException,
UnsupportedCommOperationException {
if (argv.length != 1) {
System.err.println("Usage: ParallelPrint filename");
System.exit(1);
}
inputFileName = argv[0];
new ParallelPrint(null).converse();
System.exit(0);
}
/* Constructor */
public ParallelPrint(Frame f)
throws IOException, NoSuchPortException, PortInUseException,
UnsupportedCommOperationException {
super(f);
}
/**
* Hold the (one-way) conversation.
*/
protected void converse() throws IOException {
// Make a reader for the input file.
BufferedReader file = new BufferedReader(
new FileReader(inputFileName));
String line;
while ((line = file.readLine()) != null)
os.println(line);
//Finally, clean up.
file.close();
os.close();
}
}

Binary file not shown.