Java OutputStream Write Endian writeInt2BE(OutputStream out, int v)

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

Description

write Int BE

License

Open Source License

Declaration

public static void writeInt2BE(OutputStream out, int v)
            throws IOException 

Method Source Code

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

import java.io.IOException;

import java.io.OutputStream;

public class Main {
    public static void writeInt2BE(OutputStream out, int v)
            throws IOException {
        out.write((int) ((v >> 8) & 0xFF));
        out.write((int) (v & 0xFF));
    }// www  .ja v a  2 s. co m
}

Related

  1. writeInt16(OutputStream out, int i)
  2. writeInt24(OutputStream os, int value)
  3. writeInt24(OutputStream out, int value)
  4. writeInt2BE(OutputStream out, int v)
  5. writeInt32(OutputStream in_stream, int in_value)
  6. writeInt32BE(OutputStream os, int val)