Java OutputStream Write Int writeInt(OutputStream os, long v)

Here you can find the source of writeInt(OutputStream os, long v)

Description

write Int

License

Open Source License

Declaration

public static void writeInt(OutputStream os, long v) throws IOException 

Method Source Code


//package com.java2s;
import java.io.IOException;
import java.io.OutputStream;

public class Main {
    public static void writeInt(OutputStream os, long v) throws IOException {
        os.write((int) (v & 0xff));
        os.write((int) ((v >>> 8) & 0xff));
        os.write((int) ((v >>> 16) & 0xff));
        os.write((int) ((v >>> 24) & 0xff));
    }//from  w ww  .  jav  a2  s .  co m
}

Related

  1. writeInt(OutputStream os, int v)
  2. writeInt(OutputStream os, int val)
  3. writeInt(OutputStream os, int value)
  4. writeInt(OutputStream os, int value)
  5. writeInt(OutputStream os, int value)
  6. writeInt(OutputStream out, int i)
  7. writeInt(OutputStream out, int i)
  8. writeInt(OutputStream out, int i)
  9. writeInt(OutputStream out, int i)