Here you can find the source of getInputStream(byte[] signature)
public static ByteArrayInputStream getInputStream(byte[] signature) throws IOException
//package com.java2s; /******************************************************************************* * Copyright (c) 2009 Zhao and others.//from w ww .j av a2s. c om * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Zhao - initial API and implementation *******************************************************************************/ import java.io.*; public class Main { public static ByteArrayInputStream getInputStream(byte[] signature) throws IOException { ByteArrayInputStream fileInput = new ByteArrayInputStream(signature); return fileInput; } }