1 22 23 package apollo; 24 25 import java.io.*; 26 import java.net.*; 27 import java.util.*; 28 29 public class MuffinStore 30 { 31 32 public void setTag( URL url, int tag ) throws MalformedURLException, IOException 33 { 34 MuffinStoreHandler.getHandler().setTag( url, tag ); 35 } 36 37 public static FileContents get( URL url ) throws MalformedURLException, FileNotFoundException, IOException 38 { 39 return MuffinStoreHandler.getHandler().get( url ); 40 } 41 42 public static FileContents get( String name ) throws MalformedURLException, FileNotFoundException, IOException 43 { 44 return MuffinStoreHandler.getHandler().get( name ); 45 } 46 47 public static URL getCodeBase() 48 { 49 return MuffinStoreHandler.getHandler().getCodeBase(); 50 } 51 52 public static String [] getNames() throws MalformedURLException, IOException 53 { 54 return MuffinStoreHandler.getHandler().getNames(); 55 } 56 57 public static String [] getNames( URL url ) throws MalformedURLException, IOException 58 { 59 return MuffinStoreHandler.getHandler().getNames( url ); 60 } 61 62 public static String [] getNames( String name ) throws MalformedURLException, IOException 63 { 64 return MuffinStoreHandler.getHandler().getNames( name ); 65 } 66 67 public static int getTag( URL url ) throws MalformedURLException, IOException 68 { 69 return MuffinStoreHandler.getHandler().getTag( url ); 70 } 71 72 public static long create( URL url, long maxSize ) throws MalformedURLException, IOException 73 { 74 return MuffinStoreHandler.getHandler().create( url, maxSize ); 75 } 76 77 public static long create( String name, long maxSize ) throws MalformedURLException, IOException 78 { 79 return MuffinStoreHandler.getHandler().create( name, maxSize ); 80 } 81 82 public static void delete( URL url ) throws MalformedURLException, IOException 83 { 84 MuffinStoreHandler.getHandler().delete( url ); 85 } 86 87 public static void delete( String name ) throws MalformedURLException, IOException 88 { 89 MuffinStoreHandler.getHandler().delete( name ); 90 } 91 92 public static boolean exists( URL url ) throws MalformedURLException, IOException 93 { 94 return MuffinStoreHandler.getHandler().exists( url ); 95 } 96 97 public static boolean exists( String name ) throws MalformedURLException, IOException 98 { 99 return MuffinStoreHandler.getHandler().exists( name ); 100 } 101 102 public static Properties loadProperties( String name ) throws MalformedURLException, FileNotFoundException, IOException 103 { 104 return MuffinStoreHandler.getHandler().loadProperties( name ); 105 } 106 107 public static String loadText( String name ) throws MalformedURLException, FileNotFoundException, IOException 108 { 109 return MuffinStoreHandler.getHandler().loadText( name ); 110 } 111 112 public static void saveProperties( String name, Properties props ) throws MalformedURLException, FileNotFoundException, IOException 113 { 114 MuffinStoreHandler.getHandler().saveProperties( name, props ); 115 } 116 117 public static void saveProperties( String name, Properties props, long maxSize ) throws MalformedURLException, FileNotFoundException, IOException 118 { 119 MuffinStoreHandler.getHandler().saveProperties( name, props, maxSize ); 120 } 121 122 public static void saveText( String name, String text ) throws MalformedURLException, FileNotFoundException, IOException 123 { 124 MuffinStoreHandler.getHandler().saveText( name, text ); 125 } 126 127 public static void saveText( String name, String text, long maxSize ) throws MalformedURLException, FileNotFoundException, IOException 128 { 129 MuffinStoreHandler.getHandler().saveText( name, text, maxSize ); 130 } 131 } 132 | Popular Tags |