Code example for FileOutputStream

Methods: close

	 * @throws IOException 
	 *             if an I/O error occurs 
	private void copyFileToTemp(InputStream inputStream, long length) throws IOException {
		File tempFile = File.createTempFile("jar-", ".tmp");
		FileOutputStream fileOutputStream = new FileOutputStream(tempFile);
		FileUtil.copy(inputStream, fileOutputStream, length);
		tempJarFile = new JarFile(tempFile);
	 * {@inheritDoc} 
	 * <p> 
	 * This method searches the temporary copy of the jar file for an entry 
	 * that is specified by the given class name. 
	 * @see java.lang.ClassLoader#findClass(java.lang.String) 
Contextual code suggestions in your IDE  Get Codota for Java