KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > storage > gammaStore > FileStreamStorageFactory


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// Copyright (C) 2003-@year@, Leo Mekenkamp. All rights reserved.
5
//
6
// $Id$
7

8 package org.ozoneDB.core.storage.gammaStore;
9
10 import java.io.File JavaDoc;
11 import java.io.IOException JavaDoc;
12 import java.util.Properties JavaDoc;
13
14 /**
15  * @author <a HREF="mailto:leoATmekenkampD0Tcom">Leo Mekenkamp (mind the anti sp@m)</a>
16  * @version $Id$
17  */

18 public class FileStreamStorageFactory extends FileStorageFactory {
19     
20     public FileStreamStorageFactory(Properties JavaDoc properties, String JavaDoc prefix) {
21         super(properties, prefix);
22     }
23     
24     public Storage createStorage(String JavaDoc name) throws IOException JavaDoc {
25         File JavaDoc file = nameToFile(name);
26         ensureParentsExist(file);
27         return new FileStreamStorage(file);
28     }
29         
30 }
31
Popular Tags