mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 19:15:29 -04:00
TMC-IO: Fixed typos, no functional changes
This commit is contained in:
parent
55bd82491f
commit
23ae6a966a
@ -79,7 +79,7 @@ public final class FileUtil {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Method main for test only.
|
* Method main for test only.
|
||||||
*/
|
*
|
||||||
public static void main0(String[] pArgs) {
|
public static void main0(String[] pArgs) {
|
||||||
if (pArgs.length != 2) {
|
if (pArgs.length != 2) {
|
||||||
System.out.println("usage: java Copy in out");
|
System.out.println("usage: java Copy in out");
|
||||||
@ -94,6 +94,7 @@ public final class FileUtil {
|
|||||||
System.out.println(e.getMessage());
|
System.out.println(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//*/
|
||||||
|
|
||||||
// Avoid instances/constructor showing up in API doc
|
// Avoid instances/constructor showing up in API doc
|
||||||
private FileUtil() {}
|
private FileUtil() {}
|
||||||
@ -204,7 +205,7 @@ public final class FileUtil {
|
|||||||
close(out);
|
close(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true; // If we got here, everything's probably okay.. ;-)
|
return true; // If we got here, everything is probably okay.. ;-)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -581,7 +582,7 @@ public final class FileUtil {
|
|||||||
* @throws IOException if an i/o error occurs during read.
|
* @throws IOException if an i/o error occurs during read.
|
||||||
*/
|
*/
|
||||||
public static byte[] read(InputStream pInput) throws IOException {
|
public static byte[] read(InputStream pInput) throws IOException {
|
||||||
// Create bytearray
|
// Create byte array
|
||||||
ByteArrayOutputStream bytes = new FastByteArrayOutputStream(BUF_SIZE);
|
ByteArrayOutputStream bytes = new FastByteArrayOutputStream(BUF_SIZE);
|
||||||
|
|
||||||
// Copy from stream to byte array
|
// Copy from stream to byte array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user