Writes a new line. - Java java.io

Java examples for java.io:OutputStream

Description

Writes a new line.

Demo Code


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

public class Main {
    /**/*from   www .  j  ava2s  .c om*/
     * Writes a new line.
     * 
     * @param os
     *            The output stream.
     * @throws IOException
     */
    public static void writeCRLF(OutputStream os) throws IOException {
        os.write(13); // CR
        os.write(10); // LF
    }
}

Related Tutorials