/** * Write the bytes in the specified byte list to the associated channel. * * @param buffer the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteBuffer buffer) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(buffer); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buffer the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteBuffer buffer) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(buffer); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buffer the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteBuffer buffer) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(buffer); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buffer the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteBuffer buffer) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(buffer); }
/** * Write the byte represented by the specified int to the associated channel. * * @param c The byte to write * @return 1 if the byte was written, 0 if not and -1 if there was an error * (@see java.nio.channels.WritableByteChannel.write(java.nio.ByteBuffer)) * @throws java.io.IOException If there was an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(int c) throws IOException, BadDescriptorException { checkOpen(); ByteBuffer buf = ByteBuffer.allocate(1); buf.put((byte)c); buf.flip(); return internalWrite(buf); }
/** * Write the byte represented by the specified int to the associated channel. * * @param c The byte to write * @return 1 if the byte was written, 0 if not and -1 if there was an error * (@see java.nio.channels.WritableByteChannel.write(java.nio.ByteBuffer)) * @throws java.io.IOException If there was an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(int c) throws IOException, BadDescriptorException { checkOpen(); ByteBuffer buf = ByteBuffer.allocate(1); buf.put((byte)c); buf.flip(); return internalWrite(buf); }
/** * Write the byte represented by the specified int to the associated channel. * * @param c The byte to write * @return 1 if the byte was written, 0 if not and -1 if there was an error * (@see java.nio.channels.WritableByteChannel.write(java.nio.ByteBuffer)) * @throws java.io.IOException If there was an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(int c) throws IOException, BadDescriptorException { checkOpen(); ByteBuffer buf = ByteBuffer.allocate(1); buf.put((byte)c); buf.flip(); return internalWrite(buf); }
/** * Write the byte represented by the specified int to the associated channel. * * @param c The byte to write * @return 1 if the byte was written, 0 if not and -1 if there was an error * (@see java.nio.channels.WritableByteChannel.write(java.nio.ByteBuffer)) * @throws java.io.IOException If there was an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(int c) throws IOException, BadDescriptorException { checkOpen(); ByteBuffer buf = ByteBuffer.allocate(1); buf.put((byte)c); buf.flip(); return internalWrite(buf); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @param offset the offset to start at. this is relative to the begin variable in the but * @param len the amount of bytes to write. this should not be longer than the buffer * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf, int offset, int len) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin()+offset, len)); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @param offset the offset to start at. this is relative to the begin variable in the but * @param len the amount of bytes to write. this should not be longer than the buffer * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf, int offset, int len) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin()+offset, len)); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @param offset the offset to start at. this is relative to the begin variable in the but * @param len the amount of bytes to write. this should not be longer than the buffer * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf, int offset, int len) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin()+offset, len)); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @param offset the offset to start at. this is relative to the begin variable in the but * @param len the amount of bytes to write. this should not be longer than the buffer * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf, int offset, int len) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin()+offset, len)); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin(), buf.length())); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin(), buf.length())); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin(), buf.length())); }
/** * Write the bytes in the specified byte list to the associated channel. * * @param buf the byte list containing the bytes to be written * @return the number of bytes actually written * @throws java.io.IOException if there is an exception during IO * @throws org.jruby.util.io.BadDescriptorException if the associated * channel is already closed */ public int write(ByteList buf) throws IOException, BadDescriptorException { checkOpen(); return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin(), buf.length())); }