Java File Write via ByteBuffer writeEmpty()

Here you can find the source of writeEmpty()

Description

write Empty

License

Open Source License

Declaration

private static byte[] writeEmpty() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.nio.ByteBuffer;

public class Main {
    public final static int EMPTY_CLIPBOARD = 0;

    private static byte[] writeEmpty() {
        return ByteBuffer.allocate(4).putInt(EMPTY_CLIPBOARD).array();
    }/*  w  w w . j  av a2 s. c o  m*/
}

Related

  1. writeBytes(Path file, byte[] bytes)
  2. writeComment(File zipFile, String comment)
  3. writeDataLengthsToHeader(FileOutputStream fpo)
  4. writeDelimitedToOutputStream(byte[] bytes, OutputStream outputStream)
  5. writeDouble(BufferedWriter bw, double[] buf)
  6. writeFC(String fname, float[] res)
  7. writeFile(File file, byte[] bytes)
  8. writeFile(File file, byte[] data)
  9. writeFile(String source, File outputFile)