projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve documentation
[lgpl/argeo-commons.git]
/
org.argeo.cms
/
src
/
org
/
argeo
/
cms
/
util
/
StreamUtils.java
diff --git
a/org.argeo.cms/src/org/argeo/cms/util/StreamUtils.java
b/org.argeo.cms/src/org/argeo/cms/util/StreamUtils.java
index 5fbef6b31a6889f9ba3276150032988214d0e293..f4242e6c273bbea6de0dd392256d40915109b9f6 100644
(file)
--- a/
org.argeo.cms/src/org/argeo/cms/util/StreamUtils.java
+++ b/
org.argeo.cms/src/org/argeo/cms/util/StreamUtils.java
@@
-16,13
+16,9
@@
import java.util.StringJoiner;
public class StreamUtils {
private static final int DEFAULT_BUFFER_SIZE = 1024 * 4;
public class StreamUtils {
private static final int DEFAULT_BUFFER_SIZE = 1024 * 4;
- /*
- * APACHE COMMONS IO (inspired)
- */
-
/** @return the number of bytes */
/** @return the number of bytes */
- public static
L
ong copy(InputStream in, OutputStream out) throws IOException {
-
L
ong count = 0l;
+ public static
l
ong copy(InputStream in, OutputStream out) throws IOException {
+
l
ong count = 0l;
byte[] buf = new byte[DEFAULT_BUFFER_SIZE];
while (true) {
int length = in.read(buf);
byte[] buf = new byte[DEFAULT_BUFFER_SIZE];
while (true) {
int length = in.read(buf);
@@
-35,8
+31,8
@@
public class StreamUtils {
}
/** @return the number of chars */
}
/** @return the number of chars */
- public static
L
ong copy(Reader in, Writer out) throws IOException {
-
L
ong count = 0l;
+ public static
l
ong copy(Reader in, Writer out) throws IOException {
+
l
ong count = 0l;
char[] buf = new char[DEFAULT_BUFFER_SIZE];
while (true) {
int length = in.read(buf);
char[] buf = new char[DEFAULT_BUFFER_SIZE];
while (true) {
int length = in.read(buf);