projects
/
jSite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🔀 Merge release branch for 0.14
[jSite.git]
/
src
/
main
/
java
/
de
/
todesbaum
/
util
/
freenet
/
fcp2
/
Connection.java
diff --git
a/src/main/java/de/todesbaum/util/freenet/fcp2/Connection.java
b/src/main/java/de/todesbaum/util/freenet/fcp2/Connection.java
index
c4cb669
..
bbf3c81
100644
(file)
--- a/
src/main/java/de/todesbaum/util/freenet/fcp2/Connection.java
+++ b/
src/main/java/de/todesbaum/util/freenet/fcp2/Connection.java
@@
-1,5
+1,5
@@
/*
/*
- * jSite - Connection.java - Copyright © 2006–201
2
David Roden
+ * jSite - Connection.java - Copyright © 2006–201
9
David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-30,10
+30,10
@@
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import java.util.ArrayList;
import java.util.List;
-import de.todesbaum.util.io.Closer;
+import net.pterodactylus.util.io.Closer;
+import net.pterodactylus.util.io.StreamCopier;
+import net.pterodactylus.util.io.StreamCopier.ProgressListener;
import de.todesbaum.util.io.LineInputStream;
import de.todesbaum.util.io.LineInputStream;
-import de.todesbaum.util.io.StreamCopier;
-import de.todesbaum.util.io.StreamCopier.ProgressListener;
import de.todesbaum.util.io.TempFileInputStream;
/**
import de.todesbaum.util.io.TempFileInputStream;
/**
@@
-268,7
+268,7
@@
public class Connection {
InputStream payloadInputStream = null;
try {
payloadInputStream = command.getPayload();
InputStream payloadInputStream = null;
try {
payloadInputStream = command.getPayload();
- StreamCopier.copy(payloadInputStream, nodeOutputStream,
command.getPayloadLength(), progressListener
);
+ StreamCopier.copy(payloadInputStream, nodeOutputStream,
progressListener, command.getPayloadLength()
);
} finally {
Closer.close(payloadInputStream);
}
} finally {
Closer.close(payloadInputStream);
}