C#/Java: Rename the directories containing the model generator and tests.

This commit is contained in:
Michael Nebel
2022-12-20 13:55:29 +01:00
parent 178fd0e9e1
commit 787b4743ee
61 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package p;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.URL;
import java.util.function.Consumer;
import java.util.List;
public class Sources {
public InputStream readUrl(final URL url) throws IOException {
return url.openConnection().getInputStream();
}
public InputStream socketStream() throws IOException {
ServerSocket socket = new ServerSocket(123);
return socket.accept().getInputStream();
}
public InputStream wrappedSocketStream() throws IOException {
return socketStream();
}
public void sourceToParameter(InputStream[] streams, List<InputStream> otherStreams) throws IOException {
ServerSocket socket = new ServerSocket(123);
streams[0] = socket.accept().getInputStream();
otherStreams.add(socket.accept().getInputStream());
}
}