public class Archive
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_PATH
The base path
|
Constructor and Description |
---|
Archive() |
Modifier and Type | Method and Description |
---|---|
static javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.net.URL url)
Gets an AudioInputStream from an URL
|
static java.net.URL |
getFileURL(java.lang.String file_name)
Gets the complete URL of a file.
|
static java.awt.Image |
getImage(java.lang.String file_name)
Gets an Image from file
|
static java.awt.Image |
getImage(java.net.URL url)
Gets an Image from a URL.
|
static javax.swing.ImageIcon |
getImageIcon(java.lang.String file_name)
Gets an ImageIcon from file
|
static javax.swing.ImageIcon |
getImageIcon(java.net.URL url)
Gets an ImageIcon from an URL
|
static java.io.InputStream |
getInputStream(java.net.URL url)
Gets an InputStream from an URL
|
static java.net.URL |
getJarURL(java.lang.String jar_archive,
java.lang.String file_name)
Gets the complete URL of a file included within a jar archive.
|
public static java.net.URL getJarURL(java.lang.String jar_archive, java.lang.String file_name) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL getFileURL(java.lang.String file_name) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.awt.Image getImage(java.lang.String file_name) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static java.awt.Image getImage(java.net.URL url) throws java.io.IOException
java.io.IOException
public static javax.swing.ImageIcon getImageIcon(java.lang.String file_name) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static javax.swing.ImageIcon getImageIcon(java.net.URL url) throws java.io.IOException
java.io.IOException
public static java.io.InputStream getInputStream(java.net.URL url) throws java.io.IOException
java.io.IOException
public static javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException