Java OutputStream Write Int writeInt(OutputStream out, int v)

Here you can find the source of writeInt(OutputStream out, int v)

Description

write Int

License

Open Source License

Declaration

static void writeInt(OutputStream out, int v) throws IOException 

Method Source Code


//package com.java2s;
/*/*w w  w .  j av a 2s .  c  o m*/
 * @(#)NodeUtil.java 1.2 05/06/27
 *
 * Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved.
 *
 * See the file "LICENSE.txt" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 */

import java.io.*;

public class Main {
    static void writeInt(OutputStream out, int v) throws IOException {
        out.write((v >>> 24) & 0xFF);
        out.write((v >>> 16) & 0xFF);
        out.write((v >>> 8) & 0xFF);
        out.write((v >>> 0) & 0xFF);
    }
}

Related

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