Java File to OutputStream newOutputStream()

Here you can find the source of newOutputStream()

Description

new Output Stream

License

LGPL

Declaration

public static void newOutputStream() 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.io.ByteArrayOutputStream;

import java.io.DataOutputStream;

public class Main {
    public static DataOutputStream dataOS;
    public static ByteArrayOutputStream byteArrayOS;

    public static void newOutputStream() {
        byteArrayOS = new ByteArrayOutputStream();
        dataOS = new DataOutputStream(byteArrayOS);
    }//from  www  .j  ava 2  s . c  om
}

Related

  1. newOutputStream()
  2. newOutputStream(File file)
  3. newOutputStream(File file)
  4. openOutputStream(File file)