write Char via OutputStream - Java java.io

Java examples for java.io:OutputStream

Description

write Char via OutputStream

Demo Code


//package com.java2s;

import java.io.IOException;

import java.io.OutputStream;

public class Main {
    public static void writChar(char val, OutputStream out)
            throws IOException {
        out.write((val >>> 8) & 0xff);
        out.write(val & 0xff);
    }//from  w ww . j  a  v a  2  s . c o  m
}

Related Tutorials