apollo
Class MuffinStoreHandler

java.lang.Object
  |
  +--apollo.MuffinStoreHandler

public class MuffinStoreHandler
extends java.lang.Object


Constructor Summary
MuffinStoreHandler()
           
 
Method Summary
 long create(java.lang.String name, long maxSize)
           
 long create(java.net.URL url, long maxSize)
           
 void delete(java.lang.String name)
           
 void delete(java.net.URL url)
           
 boolean exists(java.lang.String name)
           
 boolean exists(java.net.URL url)
           
 FileContents get(java.lang.String name)
           
 FileContents get(java.net.URL url)
           
 java.net.URL getCodeBase()
           
static MuffinStoreHandler getHandler()
           
 java.lang.String[] getNames()
           
 java.lang.String[] getNames(java.lang.String name)
           
 java.lang.String[] getNames(java.net.URL url)
           
 int getTag(java.net.URL url)
           
 java.util.Properties loadProperties(java.lang.String name)
           
 java.lang.String loadText(java.lang.String name)
           
 void saveProperties(java.lang.String name, java.util.Properties props)
           
 void saveProperties(java.lang.String name, java.util.Properties props, long maxSize)
           
 void saveText(java.lang.String name, java.lang.String text)
           
 void saveText(java.lang.String name, java.lang.String text, long maxSize)
           
 void setTag(java.net.URL url, int tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuffinStoreHandler

public MuffinStoreHandler()
Method Detail

setTag

public void setTag(java.net.URL url,
                   int tag)
            throws java.net.MalformedURLException,
                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

getHandler

public static MuffinStoreHandler getHandler()

get

public FileContents get(java.net.URL url)
                 throws java.net.MalformedURLException,
                        java.io.FileNotFoundException,
                        java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException

get

public FileContents get(java.lang.String name)
                 throws java.net.MalformedURLException,
                        java.io.FileNotFoundException,
                        java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException

getCodeBase

public java.net.URL getCodeBase()

getNames

public java.lang.String[] getNames()
                            throws java.net.MalformedURLException,
                                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

getNames

public java.lang.String[] getNames(java.net.URL url)
                            throws java.net.MalformedURLException,
                                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

getNames

public java.lang.String[] getNames(java.lang.String name)
                            throws java.net.MalformedURLException,
                                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

getTag

public int getTag(java.net.URL url)
           throws java.net.MalformedURLException,
                  java.io.IOException
java.net.MalformedURLException
java.io.IOException

create

public long create(java.net.URL url,
                   long maxSize)
            throws java.net.MalformedURLException,
                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

create

public long create(java.lang.String name,
                   long maxSize)
            throws java.net.MalformedURLException,
                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

delete

public void delete(java.net.URL url)
            throws java.net.MalformedURLException,
                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

delete

public void delete(java.lang.String name)
            throws java.net.MalformedURLException,
                   java.io.IOException
java.net.MalformedURLException
java.io.IOException

exists

public boolean exists(java.net.URL url)
               throws java.net.MalformedURLException,
                      java.io.IOException
java.net.MalformedURLException
java.io.IOException

exists

public boolean exists(java.lang.String name)
               throws java.net.MalformedURLException,
                      java.io.IOException
java.net.MalformedURLException
java.io.IOException

loadProperties

public java.util.Properties loadProperties(java.lang.String name)
                                    throws java.net.MalformedURLException,
                                           java.io.FileNotFoundException,
                                           java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException

loadText

public java.lang.String loadText(java.lang.String name)
                          throws java.net.MalformedURLException,
                                 java.io.FileNotFoundException,
                                 java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException

saveProperties

public void saveProperties(java.lang.String name,
                           java.util.Properties props)
                    throws java.net.MalformedURLException,
                           java.io.FileNotFoundException,
                           java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException

saveProperties

public void saveProperties(java.lang.String name,
                           java.util.Properties props,
                           long maxSize)
                    throws java.net.MalformedURLException,
                           java.io.FileNotFoundException,
                           java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException

saveText

public void saveText(java.lang.String name,
                     java.lang.String text)
              throws java.net.MalformedURLException,
                     java.io.FileNotFoundException,
                     java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException

saveText

public void saveText(java.lang.String name,
                     java.lang.String text,
                     long maxSize)
              throws java.net.MalformedURLException,
                     java.io.FileNotFoundException,
                     java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException


Copyright © 2001, 2002, 2003 Gerald Bauer. All Rights Reserved. Hosted by SourceForge Logo