Java ByteBuffer Write writeFully(FileChannel channel, ByteBuffer fileInfosBuffer)

Here you can find the source of writeFully(FileChannel channel, ByteBuffer fileInfosBuffer)

Description

write Fully

License

Apache License

Declaration

static void writeFully(FileChannel channel, ByteBuffer fileInfosBuffer) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.nio.channels.FileChannel;
import java.nio.ByteBuffer;

import java.io.IOException;

public class Main {
    static void writeFully(FileChannel channel, ByteBuffer fileInfosBuffer) throws IOException {
        while (fileInfosBuffer.hasRemaining()) {
            channel.write(fileInfosBuffer);
        }/*from w  ww. j a  v a  2s  . co m*/
    }
}

Related

  1. writeFloat(ByteBuffer buffer, float f)
  2. writeFromBuffer(SocketChannel channel, ByteBuffer buf, int sleepMsecs)
  3. writeFully(@Nonnull final FileChannel dst, @Nonnull final ByteBuffer src, @Nonnegative final long position)
  4. writeFully(ByteBuffer buf, WritableByteChannel out)
  5. writeFully(ByteBuffer buffer, WritableByteChannel channel)
  6. writeFully(FileChannel channel, ByteBuffer src)
  7. writeFully(FileChannel channel, long offset, ByteBuffer buf)
  8. writeFully(FileChannel fc, ByteBuffer buf, long offset)
  9. writeFully(FileChannel fileChannel, long filePosition, ByteBuffer buffer)