Java Stream Close closeInputStream(InputStream inputStream)

Here you can find the source of closeInputStream(InputStream inputStream)

Description

close Input Stream

License

Apache License

Declaration

private static void closeInputStream(InputStream inputStream) 

Method Source Code

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

import java.io.IOException;
import java.io.InputStream;

public class Main {
    private static void closeInputStream(InputStream inputStream) {
        try {/*from  www.j ava  2s  .  c om*/
            if (inputStream != null) {
                inputStream.close();
            }
        } catch (IOException e) {
            // what the hell?!
            throw new RuntimeException("Unable to close file input stream.", e);
        }
    }
}

Related

  1. closeInput(InputStream src)
  2. closeInputStream(DataInputStream di)
  3. closeInputStream(InputStream in)
  4. closeInputStream(InputStream inp)
  5. closeInputStream(InputStream inputStream)
  6. closeInputStream(InputStream stream)
  7. closeJMXConnection()
  8. closeKeyMap(BufferedReader in)
  9. closeLog()