1 |
/* PipeImpl.java -- |
/* PipeImpl.java -- |
2 |
Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. |
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
79 |
return read (srcs, 0, srcs.length); |
return read (srcs, 0, srcs.length); |
80 |
} |
} |
81 |
|
|
82 |
public synchronized final long read (ByteBuffer[] srcs, int offset, int len) |
public final synchronized long read (ByteBuffer[] srcs, int offset, |
83 |
|
int len) |
84 |
throws IOException |
throws IOException |
85 |
{ |
{ |
86 |
if (offset < 0 |
if (offset < 0 |
139 |
return write (srcs, 0, srcs.length); |
return write (srcs, 0, srcs.length); |
140 |
} |
} |
141 |
|
|
142 |
public synchronized final long write (ByteBuffer[] srcs, int offset, int len) |
public final synchronized long write (ByteBuffer[] srcs, int offset, int len) |
143 |
throws IOException |
throws IOException |
144 |
{ |
{ |
145 |
if (offset < 0 |
if (offset < 0 |