/** * Writes data to the native unix file descriptor. * * @param src The source <tt>ByteBuffer</tt> to write to the file descriptor. * @return The number of bytes written. * * @throws java.io.IOException If an error occurred during writing. */ public int write(ByteBuffer src) throws IOException { if (!isOpen) { throw new IOException("Not open"); } int n = libc.write(fd, src, src.remaining()); if (n > 0) { src.position(src.position() + n); } return n; }
/** * Writes data to the native unix file descriptor. * * @param src The source <tt>ByteBuffer</tt> to write to the file descriptor. * @return The number of bytes written. * * @throws java.io.IOException If an error occurred during writing. */ public int write(ByteBuffer src) throws IOException { if (!isOpen) { throw new IOException("Not open"); } int n = libc.write(fd, src, src.remaining()); if (n > 0) { src.position(src.position() + n); } return n; }
/** * Writes data to the native unix file descriptor. * * @param src The source <tt>ByteBuffer</tt> to write to the file descriptor. * @return The number of bytes written. * * @throws java.io.IOException If an error occurred during writing. */ public int write(ByteBuffer src) throws IOException { if (!isOpen) { throw new IOException("Not open"); } int n = libc.write(fd, src, src.remaining()); if (n > 0) { src.position(src.position() + n); } return n; }
/** * Writes data to the native unix file descriptor. * * @param src The source <tt>ByteBuffer</tt> to write to the file descriptor. * @return The number of bytes written. * * @throws java.io.IOException If an error occurred during writing. */ public int write(ByteBuffer src) throws IOException { if (!isOpen) { throw new IOException("Not open"); } int n = libc.write(fd, src, src.remaining()); if (n > 0) { src.position(src.position() + n); } return n; }
public long write(int fd, ByteBuffer buf, long n) { return libc().write(fd, buf, n); } public long pread(int fd, byte[] buf, long n, long offset) {
public int write(int fd, ByteBuffer buf, int n) { return libc().write(fd, buf, n); } public int pread(int fd, byte[] buf, int n, int offset) {
public long write(int fd, byte[] buf, long n) { return libc().write(fd, buf, n); } public long read(int fd, ByteBuffer buf, long n) {
public int write(int fd, byte[] buf, int n) { return libc().write(fd, buf, n); } public int read(int fd, ByteBuffer buf, int n) {
public int write(int fd, byte[] buf, int n) { return libc().write(fd, buf, n); }
public int write(int fd, ByteBuffer buf, int n) { return libc().write(fd, buf, n); }
public int write(int fd, byte[] buf, int n) { return libc().write(fd, buf, n); }
public int write(int fd, ByteBuffer buf, int n) { return libc().write(fd, buf, n); }