MjSip Stack
v1.6

org.zoolu.tools
Class Archive

java.lang.Object
  |
  +--org.zoolu.tools.Archive

public class Archive
extends java.lang.Object

Collection of static methods for handling files and jar archives.


Field Summary
static java.lang.String BASE_PATH
          The base path
 
Constructor Summary
Archive()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_PATH

public static java.lang.String BASE_PATH
The base path
Constructor Detail

Archive

public Archive()
Method Detail

getJarURL

public 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.

getFileURL

public static java.net.URL getFileURL(java.lang.String file_name)
Gets the complete url of a file.

getImage

public static java.awt.Image getImage(java.lang.String file_name)
Gets an Image from file

getImage

public static java.awt.Image getImage(java.net.URL url)
Gets an Image from a URL.

getImageIcon

public static javax.swing.ImageIcon getImageIcon(java.lang.String file_name)
Gets an ImageIcon from file

getImageIcon

public static javax.swing.ImageIcon getImageIcon(java.net.URL url)
Gets an ImageIcon from an URL

getInputStream

public static java.io.InputStream getInputStream(java.net.URL url)
Gets an InputStream from an URL

getAudioInputStream

public static javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url)
                                                                throws javax.sound.sampled.UnsupportedAudioFileException
Gets an AudioInputStream from an URL

MjSip Stack
v1.6