Java InputStream Type Check isByteArrayInputStream(InputStream is)

Here you can find the source of isByteArrayInputStream(InputStream is)

Description

is Byte Array Input Stream

License

Apache License

Declaration

private static boolean isByteArrayInputStream(InputStream is) 

Method Source Code


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

import java.io.ByteArrayInputStream;

import java.io.InputStream;

public class Main {
    private static boolean isByteArrayInputStream(InputStream is) {
        return ByteArrayInputStream.class.equals(is.getClass());
    }/*from  ww w .  j a  va 2  s .  co m*/
}