Transfers.java revision 2546
1N/A extends RuntimeException
1N/A throws IOException
1N/A throws IOException
1N/A throws IOException
1N/A throws IOException
1N/A throws IOException
1N/A throws IOException
1N/A throws IOException
1N/A static class FileSource
static class UserSource
extends Source
return nr;
public boolean isOpen() {
public void close() { }
return ch;
void verify() {
static abstract class Target {
protected final int size;
protected final long seed;
return name;
static class FileTarget
extends Target
return fc;
static class UserTarget
extends Target
return nr;
public boolean isOpen() {
public void close() { }
return ch;
void verify() {
static class IntGenerator {
private int max;
boolean hasNext() {
int next() {
throw new IllegalStateException();
cur++;
return cur;
return cur;
cur++;
return cur;
private static boolean debug = false;
private static boolean verbose = false;
if (!verbose)
throws IOException
if (n != len)
if (debug)
throws IOException
if (n != len)
if (debug)
throws Exception
verbose = true;
if (!verbose)
if (to) {
if (user)
if (user)
} catch (Failure x) {
failures++;
if (!verbose)
if (user)
if (to)