Java Stream Close closeOutputStream(OutputStream outputStream)

Here you can find the source of closeOutputStream(OutputStream outputStream)

Description

close Output Stream

License

LGPL

Declaration

private static void closeOutputStream(OutputStream outputStream) throws IOException 

Method Source Code

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

import java.io.IOException;

import java.io.OutputStream;

public class Main {
    private static void closeOutputStream(OutputStream outputStream) throws IOException {

        if (outputStream != null) {
            outputStream.close();/*  w ww  . ja v a 2 s. c o m*/
        }
    }
}

Related

  1. closeNoThrow(InputStream s)
  2. closeOutput(OutputStream stream)
  3. closeOutputFile(Writer pWriter)
  4. closeOutputStream(OutputStream out)
  5. closeOutputStream(OutputStream out, boolean flush)
  6. closePermanentOutputWriter()
  7. closePort()
  8. closePrintWriter(PrintWriter fileOutputStream)
  9. closeProcess(Process process)